I cannot add a machine to my domain, the win2k client says : "cannot add machine, the user or password is incorrect". If I read log, I can read that the smbldap-useradd script work correcly, but the rest don't work. Samba try to add an new entry, but the entry exist (created by script). I analysed the samba source and I think that is the ldap_count_entries(ldap_state->smbldap_state->ldap_struct, result) function called by ldapsam_add_sam_account don't work correcly. This method must return 1, and he return 0 or -1, I don't know. openLDAP 2.1.25 RedHat 8.0 smbldap script from samba-3.0.2a package Samba 3.0.2a with acl-support and ldap option
Created attachment 468 [details] log file of a machine which I try to add on fly
please report issues regarding the smbldap-tools to the idealx developers. Thanks.
It's not a smbldap-tools bug, smbldap work fine. samba don't detect correctly that smbldap-tool create the posixAccount and that samba tries to add a news LDAP entry whereas this entry already exist.
please retest against 3.0.11 and reopen if necessary.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.