s4:libnet_become_dc - add checks for valid domain/forest function levels
commit45a237ce88613dca0eaff43500a205d2ad94ef09
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 25 Sep 2009 08:44:19 +0000 (25 10:44 +0200)
committerAndrew Tridgell <tridge@samba.org>
Fri, 2 Oct 2009 04:22:01 +0000 (2 14:22 +1000)
treebef14c79fa90057f3cc70a1150e85a8f6d7c65b9
parent9eb78be4a670615b4e6a722f121f0f0e585b8d6b
s4:libnet_become_dc - add checks for valid domain/forest function levels

Add checks to make sure that we join only supported AD domains (we agreed that
those are >= (Windows) 2003 Native per default - this is changeable with the
"ads:function level" option).
Add also checks to make sure that we cannot join domains which have a bigger
function level than our DC capable function level (e.g. a (Windows) 2008 DC
cannot join a (Windows) 2008 R2 domain).
source4/libnet/libnet_become_dc.c