summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/schema.py
diff options
context:
space:
mode:
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-05-17 12:49:37 +0300
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-05-17 13:30:27 +0300
commitd040658e1a5a48c6cc33640de37771d601c69a76 (patch)
treef4b99f0c2312cd12ac2cba46e9826c43483e5870 /source4/scripting/python/samba/schema.py
parent26d41c23f69b9e3ee327f159c9164917422d45c5 (diff)
downloadsamba-d040658e1a5a48c6cc33640de37771d601c69a76.tar.gz
samba-d040658e1a5a48c6cc33640de37771d601c69a76.tar.xz
samba-d040658e1a5a48c6cc33640de37771d601c69a76.zip
s4-rodc: Set am_rodc flag during provision
Diffstat (limited to 'source4/scripting/python/samba/schema.py')
-rw-r--r--source4/scripting/python/samba/schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/schema.py b/source4/scripting/python/samba/schema.py
index 1777c6559c..562fe3891d 100644
--- a/source4/scripting/python/samba/schema.py
+++ b/source4/scripting/python/samba/schema.py
@@ -54,7 +54,7 @@ def get_schema_descriptor(domain_sid):
class Schema(object):
def __init__(self, setup_path, domain_sid, invocationid=None, schemadn=None,
- serverdn=None, files=None, prefixmap=None):
+ serverdn=None, files=None, prefixmap=None, am_rodc=False):
"""Load schema for the SamDB from the AD schema files and samba4_schema.ldif
:param samdb: Load a schema into a SamDB.
@@ -66,7 +66,7 @@ class Schema(object):
"""
self.schemadn = schemadn
- self.ldb = SamDB(global_schema=False)
+ self.ldb = SamDB(global_schema=False, am_rodc=am_rodc)
if serverdn is not None:
self.ldb.set_ntds_settings_dn("CN=NTDS Settings,%s" % serverdn)
if invocationid is not None: