From 53b08bfbdb68724aa7cfb26c9d53f6adf8373423 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 Aug 2011 17:27:39 +1000 Subject: s4-provision: pass the rootDN into guess_names() this gets the correct forest DN during provision Pair-Programmed-With: Andrew Bartlett --- source4/scripting/python/samba/provision/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/scripting') diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index c414bd08f0..50dff9d086 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -1061,7 +1061,7 @@ def setup_samdb_rootdse(samdb, names): setup_add_ldif(samdb, setup_path("provision_rootdse_add.ldif"), { "SCHEMADN": names.schemadn, "DOMAINDN": names.domaindn, - "ROOTDN": names.rootdn, + "ROOTDN" : names.rootdn, "CONFIGDN": names.configdn, "SERVERDN": names.serverdn, }) @@ -1608,7 +1608,7 @@ def provision(logger, session_info, credentials, smbconf=None, names = guess_names(lp=lp, hostname=hostname, domain=domain, dnsdomain=realm, serverrole=serverrole, domaindn=domaindn, configdn=configdn, schemadn=schemadn, serverdn=serverdn, - sitename=sitename) + sitename=sitename, rootdn=rootdn) paths = provision_paths_from_lp(lp, names.dnsdomain) paths.bind_gid = bind_gid -- cgit