summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-09-27 01:49:22 +0200
committerStefan Metzmacher <metze@samba.org>2008-09-27 02:12:22 +0200
commitfae2fce47e28ccfe5f43744200ce2ae68da3a9aa (patch)
treeb28bf34c343991bece0243f40c28b50832e9a7d5
parentce46f65f1703c23bad0544e14f8db464a93dbb1e (diff)
downloadsamba-fae2fce47e28ccfe5f43744200ce2ae68da3a9aa.tar.gz
samba-fae2fce47e28ccfe5f43744200ce2ae68da3a9aa.tar.bz2
samba-fae2fce47e28ccfe5f43744200ce2ae68da3a9aa.zip
s4:provision: don't do the full provision in the become_dc
metze
-rw-r--r--source4/scripting/python/samba/provision.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index 68f61532ad..427ca975b3 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -744,6 +744,8 @@ def setup_samdb(path, setup_path, session_info, credentials, lp,
samdb = SamDB(path, session_info=session_info,
credentials=credentials, lp=lp)
+ if fill == FILL_DRS:
+ return samdb
message("Pre-loading the Samba 4 and AD schema")
samdb.set_domain_sid(domainsid)