diff options
author | Matthieu Patou <mat@matws.net> | 2011-04-30 01:20:32 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-04-30 14:51:16 +0200 |
commit | da2e34a134545113c19056e4b20b457676ac0215 (patch) | |
tree | ff02ce1610d58a7ebaefb140b3acf9d17ec98b41 /source4/scripting | |
parent | 5e82d1d0a770f23082d6cb8baf49482b4a35cc28 (diff) | |
download | samba-da2e34a134545113c19056e4b20b457676ac0215.tar.gz samba-da2e34a134545113c19056e4b20b457676ac0215.tar.bz2 samba-da2e34a134545113c19056e4b20b457676ac0215.zip |
provision: reorganize attributes so that we don't attribute with DN syntax that depends on non present object
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Apr 30 14:51:16 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index ff9b00122d..bdca992412 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -1166,6 +1166,11 @@ def setup_samdb(path, session_info, provision_backend, lp, names, "DESCRIPTOR": descr, }) + # Now register this container in the root of the forest + msg = ldb.Message(ldb.Dn(samdb, names.domaindn)) + msg["subRefs"] = ldb.MessageElement(names.configdn , ldb.FLAG_MOD_ADD, + "subRefs") + # The LDIF here was created when the Schema object was constructed logger.info("Setting up sam.ldb schema") samdb.add_ldif(schema.schema_dn_add, controls=["relax:0"]) |