Joining a domain with samba4 when the user exists?
Volker.Lendecke at SerNet.DE
Sat Oct 15 18:19:14 GMT 2005
On Sat, Oct 15, 2005 at 12:06:13PM -0600, Brad Henry wrote:
> The behavior you're seeing in libnet_JoinDomain() was intentional.
> libnet_JoinDomain() is returning NT_STATUS_USER_EXISTS because that's
> what it recieved from dcerpc_samr_Createuser2().
> libnet_Join_primary_domain() is exiting immediately after it calls
> libnet_JoinDomain(), as it didn't return NT_STATUS_IS_OK.
> I'm wondering if perhaps we should keep libnet_JoinDomain() returning
> NT_STATUS_USER_EXISTS for this case, but allow
> libnet_Join_primary_domain() to add the record to secrets.tdb.
> How does that sound? I would be happy to code up a patch to get this right.
As I did not look at that area of the code deeply enough, I can't really
comment. If this is intentional, then we should at least print an error message
in the net command that the account has to be deleted before joining. Not
giving an error message at all is a bit confusing, it makes the administrator
believe the join succeeded when it did not.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20051015/3e6bfecb/attachment.bin
More information about the samba-technical