From 5aa9a6c936cbf4fb8a7a9d9a03b1678d6419e78f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 27 Aug 2012 22:37:19 +1000 Subject: s3-passdb: Allow reload of the static passdb from python This is then used in provision when the passdb backend is forced. Andrew Bartlett --- source4/scripting/python/samba/provision/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/scripting/python') 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")) -- cgit