s4:provision Raise default max functional level to 2008R2
authorAndrew Bartlett <abartlet@samba.org>
Mon, 21 Jun 2010 11:40:15 +0000 (21:40 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 23 Jun 2010 10:10:06 +0000 (20:10 +1000)
We don't support many of the extra features, but that applies across many
other parts of AD.  Allow the admin to join a 2008R2 domain if he or she wants.

This also makes it possible to test 2008R2 domain code in 'make test'

Andrew Bartlett

source4/libnet/libnet_become_dc.c
source4/scripting/python/samba/provision.py

index 25a216524e4ab3368c3f2aef21cddbace810e69c..833f5d3bd605c755db1d2aeb0f65c09f8645c9d9 100644 (file)
@@ -739,9 +739,9 @@ struct libnet_BecomeDC_state {
 
 static int32_t get_dc_function_level(struct loadparm_context *lp_ctx)
 {
-       /* per default we are (Windows) 2008 compatible */
+       /* per default we are (Windows) 2008 R2 compatible */
        return lp_parm_int(lp_ctx, NULL, "ads", "dc function level",
-               DS_DOMAIN_FUNCTION_2008);
+                          DS_DOMAIN_FUNCTION_2008_R2);
 }
 
 static void becomeDC_recv_cldap(struct tevent_req *req);
index 5bd2d0bcc281150433de6765a912f9f76837c1ca..a3ff891e5d70c98e32de18fda2a43223a34d11bb 100644 (file)
@@ -43,7 +43,7 @@ from samba.auth import system_session, admin_session
 import samba
 from samba import version, Ldb, substitute_var, valid_netbios_name
 from samba import check_all_substituted, read_and_sub_file, setup_file
-from samba.dsdb import DS_DOMAIN_FUNCTION_2003, DS_DOMAIN_FUNCTION_2008
+from samba.dsdb import DS_DOMAIN_FUNCTION_2003, DS_DOMAIN_FUNCTION_2008_R2
 from samba.dcerpc import security
 from samba.dcerpc.misc import SEC_CHAN_BDC, SEC_CHAN_WKSTA
 from samba.idmap import IDmapDB
@@ -955,13 +955,13 @@ def setup_samdb(path, setup_path, session_info, provision_backend, lp, names,
 
     # ATTENTION: Do NOT change these default values without discussion with the
     # team and/or release manager. They have a big impact on the whole program!
-    domainControllerFunctionality = DS_DOMAIN_FUNCTION_2008
+    domainControllerFunctionality = DS_DOMAIN_FUNCTION_2008_R2
 
     if dom_for_fun_level is None:
         dom_for_fun_level = DS_DOMAIN_FUNCTION_2003
 
     if dom_for_fun_level > domainControllerFunctionality:
-        raise ProvisioningError("You want to run SAMBA 4 on a domain and forest function level which itself is higher than its actual DC function level (2008). This won't work!")
+        raise ProvisioningError("You want to run SAMBA 4 on a domain and forest function level which itself is higher than its actual DC function level (2008_R2). This won't work!")
 
     domainFunctionality = dom_for_fun_level
     forestFunctionality = dom_for_fun_level