PATCH - Joining a domain with samba4 when the user exists

Brad Henry j0j0 at riod.ca
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 
structures.
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,
Brad


-------------- 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 : http://lists.samba.org/archive/samba-technical/attachments/20051015/d4a69064/SAMBA_4_0-net_join.bin


More information about the samba-technical mailing list