PATCH - Joining a domain with samba4 when the user exists

Brad Henry j0j0 at
Sat Oct 15 23:22:23 GMT 2005

Hello, this patch is intended to resolve the problem Volker encountered 
regarding domain joins in Samba 4. The problem occurred when the machine 
account existed prior to calling 'net join' (the command would return 
without indication that the join didn't succeed).

The change to libnet_join.c and libnet_join.h makes it return the 
machine account type in the libnet_Join and libnet_JoinDomain data 
If the machine account currently exists, net_join.c now reports that 
condition,  the machine account type, and a return code of -1.

Thanks Volker, and sorry for the troubles,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SAMBA_4_0-net_join.diff
Type: text/x-patch
Size: 2468 bytes
Desc: not available
Url :

More information about the samba-technical mailing list