summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/provision.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index a71b561a86..07de425370 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -945,7 +945,7 @@ def setup_samdb(path, setup_path, session_info, provision_backend, lp,
message("Reopening sam.ldb with new schema");
samdb.transaction_commit()
- samdb = Ldb(session_info=session_info,
+ samdb = Ldb(session_info=admin_session_info,
credentials=provision_backend.credentials, lp=lp)
samdb.connect(path)
samdb.transaction_start()