[Samba] Can't add users with smbpasswd to LDAP

Bradley W. Langhorst brad at langhorst.com
Thu May 9 06:50:12 GMT 2002


On Thu, 2002-05-09 at 07:09, Alexander Skwar wrote:
> Hi!
> 
> I'm using samba 2.2.4 and OpenLDAP 2.0.21 on MandrakeLinux 8.2.  In some
> howto, I read that I should be able to add users to the LDAP using
> sambas smbpasswd.  However:
> 
> [root at teich smbldap-tools]# smbpasswd Admin
> New SMB password:
> Retype new SMB password:
> LDAP search "(&(uid=Admin)(objectclass=sambaAccount))" returned 0
> entries.
> Failed to find entry for user Admin.
> Failed to modify password entry for user Admin
> 
> What did I do wrong?

did you put give the admin password to samba with the smbpasswd -j
switch?

are your sure that your administrator is named "Admin"?

run the search samba is running using ldapsearch and see if you get what
you expect.

brad





More information about the samba mailing list