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)