[Samba] Cannot update Sun One DS directory with smbpasswd

Gerald (Jerry) Carter jerry at samba.org
Fri Oct 31 17:58:49 GMT 2003

Hash: SHA1

Hoferer, Patrick K. (Space Systems) wrote:
| I can't update the users within our LDAP database using smbpasswd. I have
| attached the output from the smbpasswd debugger below:

| smbldap_search_suffix: searching for:[(&(objectclass=sambaSamAccount))]
| smbldap_open: already connected to the LDAP server
| ldapsam_getsampwnam: Duplicate entries for this user [hoferpa] Failing.
| count=4
| Failed to find entry for user hoferpa.
| Failed to modify password entry for user hoferpa
| Below is the LDAP entry for the user hoferpa:
| isun02$ ldapsearch -h isun02.sbirs.eng -b dc=sbirs,dc=eng -D
| "uid=sambaadmin,cn=directory administrators,dc=sbirs,dc=eng" -w abc123
| uid=hoferpa
| uid=hoferpa,ou=people,dc=sbirs,dc=eng

| objectClass=sambasamaccount
| userPassword=abc123
| sambaPrimaryGroupSID=S-1-5-21-3648157004-3289977631-1919091730-500-9027
| sambaSID=S-1-5-21-3648157004-3289977631-1919091730-500-823304

You got me.  Have you looked at an ethereal trace to
see exactly what the directory server is sending back to smbd?
What do you have set for the various 'ldap XXX suffix' lines in smb.conf?

cheers, jerry
~ ----------------------------------------------------------------------
~ Hewlett-Packard            ------------------------- http://www.hp.com
~ SAMBA Team                 ---------------------- http://www.samba.org
~ GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
~ "You can never go home again, Oatman, but I guess you can shop there."
~                            --John Cusack - "Grosse Point Blank" (1997)

Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the samba mailing list