diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-27 22:37:19 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-28 07:57:30 +1000 |
commit | 5aa9a6c936cbf4fb8a7a9d9a03b1678d6419e78f (patch) | |
tree | ca29b1cd80c7ac285a6f4ea382b34631c5ff32e6 /source4/scripting | |
parent | f873d422b153c55754c0d1e83670cda7c3a7f7e3 (diff) | |
download | samba-5aa9a6c936cbf4fb8a7a9d9a03b1678d6419e78f.tar.gz samba-5aa9a6c936cbf4fb8a7a9d9a03b1678d6419e78f.tar.bz2 samba-5aa9a6c936cbf4fb8a7a9d9a03b1678d6419e78f.zip |
s3-passdb: Allow reload of the static passdb from python
This is then used in provision when the passdb backend is forced.
Andrew Bartlett
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index ed46b4040d..e39a6c45ae 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -1417,6 +1417,8 @@ def setsysvolacl(samdb, netlogon, sysvol, uid, gid, domainsid, dnsdomain, domain s3conf.load(lp.configfile) # ensure we are using the right samba4 passdb backend, no matter what s3conf.set("passdb backend", "samba4:%s" % samdb.url) + passdb.reload_static_pdb() + # ensure that we init the samba4 backend, so the domain sid is marked in secrets.tdb s4_passdb = passdb.PDB(s3conf.get("passdb backend")) |