Server is Samba 3.0.3 on Linux with replicated OpenLDAP.
Join Domain from a Windows XP SP1 client fails with NT_STATUS_NO_SUCH_USER on
the first try. On the second try the machine account already exists in LDAP and
Join Domain succeeds.
smb.conf contains ldap replication sleep = 3, but there is no sleep in the log
visible. The add machine script creates the POSIX account in LDAP and waits for
replication before it returns. In the log file you can see that SAMR_CREATE_USER
succeeds, but immediatly after that follows a SAMR_QUERY_USERINFO which results
in NT_STATUS_NO_SUCH_USER. (see attached log)
Created attachment 482 [details]
Level 10 Log (gzip)
This was fixed by the 'ldap sleep time' parameter in 3.0.6
or somewhere close to that release.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.