[Samba] Strange LDAP add machine problem

Ben Davis ben at xsusio.com
Mon Apr 4 20:32:37 GMT 2005


I'm setting up a Samba/LDAP PDC (samba-3.0.13 / openldap-2.1.30) and I'm 
trying to join a machine (called "melisa") to the domain.  When I try to 
join the domain, I type in the Administrator (which maps to root) 
credentials.  and after a few seconds I get a windows error that says:

  The following error occurred while attempting to joing the domain 
"PCA-USERS":
  The user name could not be found.

The machine was successfully added to the ldap dir, in "ou=Computers", 
but I can't seem to figure out why I'm getting this error.   I saw the 
following searches in my slapd.log:

SRCH base="dc=pca-wichita,dc=com" scope=2 
filter="(&(uid=melisa$)(objectClass=sambaSamAccount))"

SRCH base="ou=Users,dc=pca-wichita,dc=com" scope=1 
filter="(&(objectClass=posixAccount)(uid=melisa$))"

The first search returned 1 entry,  but the second search returned 0.  
I'm not really sure why it's looking in ou=Users and using a scope of 1 
(isn't that the "base" scope?).  My smb.conf settings have the following:

ldap user suffix = ou=Users
ldap machine suffix = ou=Computers

Does anyone know of anything else I can look at to try and troubleshoot 
this problem?


More information about the samba mailing list