netapi: Move DC check to NetJoinDomain() where it is needed.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 11 Dec 2013 01:59:20 +0000 (14:59 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 11 Dec 2014 18:14:06 +0000 (19:14 +0100)
commitb299409410751ff3c8c775bd073e34d914a54efc
tree0073bb7c44d3f1731622cd1fe082f867e5de3176
parenta12ae815b01b372cbf8697d32d5d45d7b2d5f93d
netapi: Move DC check to NetJoinDomain() where it is needed.

This partially reverts 15f6e27bd5a9065c8b781fa21f5989ce2c355776.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10891

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/lib/netapi/joindomain.c
source3/libnet/libnet_join.c