From 8223342e50247cbfb7d3244cf717944f1d93a676 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 16 Sep 2010 23:19:32 +0200 Subject: s4:python/samba/join.py - use constant for DC function level Signed-off-by: Andrew Bartlett --- source4/scripting/python/samba/join.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/scripting/python/samba/join.py b/source4/scripting/python/samba/join.py index 679dc5bf99..5da372b407 100644 --- a/source4/scripting/python/samba/join.py +++ b/source4/scripting/python/samba/join.py @@ -31,6 +31,7 @@ from samba.provision import secretsdb_self_join, provision, FILL_DRS, find_setup from samba.net import Net import logging from samba.drs_utils import drs_Replicate +from samba.dsdb import DS_DOMAIN_FUNCTION_2008_R2 # this makes debugging easier samba.talloc_enable_null_tracking() @@ -157,7 +158,7 @@ def join_rodc(server=None, creds=None, lp=None, site=None, netbios_name=None, "systemFlags" : str(samba.dsdb.SYSTEM_FLAG_DISALLOW_MOVE_ON_DELETE), "dMDLocation" : ctx.schema_dn, "options" : "37", - "msDS-Behavior-Version" : "4", + "msDS-Behavior-Version" : str(DS_DOMAIN_FUNCTION_2008_R2), "msDS-HasDomainNCs" : ctx.base_dn, "msDS-HasFullReplicaNCs" : [ ctx.base_dn, ctx.config_dn, ctx.schema_dn ]} ctx.samdb.add(rec, ["rodc_join:1:1"]) -- cgit