LDAP backend

MarshallJ at switch.aust.com MarshallJ at switch.aust.com
Wed Nov 14 20:39:03 GMT 2001


I've managed to get an LDAP backend running with Samba 2.2.2 for user
accounts, but whenever I try to add a machine account, I get:

--8<--

marshallj at newpdc:~$ sudo smbpasswd -D 10 -a -m machine
INFO: Debug class all level = 3   (pid 10834 from pid 10834)
ldap_open_connection: connection opened
ldap_connect_system: succesful connection to the LDAP server
ldap_search_one_user: searching for:[(&(uid=machine
$)(objectclass=sambaAccount))]
We don't find this user [machine$] count=0
ldap_open_connection: connection opened
ldap_connect_system: succesful connection to the LDAP server
ldap_search_one_user: searching for:[(&(uid=machine
$)(objectclass=sambaAccount))]
ldap_search_one_user: searching for:[uid=machine$]
More than one user with that uid exists: bailing out!
Failed to add entry for user machine$.
Failed to modify password entry for user machine$

--8<--

I have an entry for machine$ in the system password file.

It almost amuses me that the ldap search reports at first to not have a
machine$ in the database, then reports there is more than one... Can anyone
help?

I've tried updating just the pdb_ldap.c from the cvs branch SAMBA_2_2 as it
has some fixes, but it gives exactly the same error.

Regards,
Josh Marshall.





More information about the samba-ntdom mailing list