[Samba] samba 2 smbpasswd + ldap - not binding properly

Tyler R. Retzlaff rtr at myinternet.com.au
Tue Feb 1 23:15:26 GMT 2005


I've been having difficulty getting smbpasswd -a working as follows.

wiggum:/etc# smbpasswd -D 10 -a rtr
New SMB password:
Retype new SMB password:
ldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server as "cn=manager,dc=test,dc=net"
Bind failed: Can't contact LDAP server
ldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server as "cn=manager,dc=test,dc=net"
Bind failed: Can't contact LDAP server
Failed to add entry for user rtr.
Failed to modify password entry for user rtr

Now it clearly says it's binding as "cn=manager,dc=test,dc=net".  But 
according to the ldap server debug info I see the following two binds.  
During the smbpasswd -a neither of which is cn=manager.

do_bind: version=3 dn="cn=nss,dc=test,dc=net" method=128
do_bind: v3 bind: "cn=nss,dc=test,dc=net" to "cn=nss,dc=test,dc=net"

My smb.conf looks like this:

ldap admin dn   = cn=manager,dc=test,dc=net
ldap server     = ldap.test.net
ldap suffix     = ou=People,dc=test,dc=net

So is smbpasswd ignoring it?  Just a note cn=nss comes from my 
libnss_ldap.conf so it's possible what I'm really seeing is the bind for nss 
lookup of the the passwd entry and smbpasswd isn't attempting to bind at 
all..

I've been scanning the samba list for days and haven't seen any solutions, so 
if someone could help me out I would appreciate it.

Thanks
-- 
Tyler R. Retzlaff <rtr at myinternet.com.au>


More information about the samba mailing list