LDAP backend

KFuerstberger at haitec.de KFuerstberger at haitec.de
Thu Nov 15 00:11:04 GMT 2001


Hai,

You have to manually add the machine account in the LDAP Database with
minimal Entries. Then, you can do an smbpasswd as done to set the missing
Entries. With the latest cvs I think the rid is set right but the acctFlags
are not set to "[W        ]"

Klaus

> 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