summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-16 23:19:32 +0200
committerAndrew Bartlett <abartlet@samba.org>2010-09-24 09:25:42 +1000
commit8223342e50247cbfb7d3244cf717944f1d93a676 (patch)
treeeff7e96b2c12c98f9db492a78e7feb368390f020
parentf84724cebcb7ac3ea47620854a318a4ac7c23688 (diff)
downloadsamba-8223342e50247cbfb7d3244cf717944f1d93a676.tar.gz
samba-8223342e50247cbfb7d3244cf717944f1d93a676.tar.bz2
samba-8223342e50247cbfb7d3244cf717944f1d93a676.zip
s4:python/samba/join.py - use constant for DC function level
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/scripting/python/samba/join.py3
1 files changed, 2 insertions, 1 deletions
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"])