summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-11 15:45:43 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-12 04:00:07 +0200
commitd79ee18f988d1f43eb1f76752e749385b9b9c251 (patch)
treef3a92d546240b7a320b299f195aa4b6d28c69040 /source4/scripting/python
parentccba16c4b8de285f55683011c1527af3f6f48460 (diff)
downloadsamba-d79ee18f988d1f43eb1f76752e749385b9b9c251.tar.gz
samba-d79ee18f988d1f43eb1f76752e749385b9b9c251.tar.bz2
samba-d79ee18f988d1f43eb1f76752e749385b9b9c251.zip
s4-provision: create dsServiceName in @ROOTDSE in GUID form
this allows for handling of server renames as the GUID doesn't change Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/provision/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py
index 4724afed1f..17f8e0f15b 100644
--- a/source4/scripting/python/samba/provision/__init__.py
+++ b/source4/scripting/python/samba/provision/__init__.py
@@ -1745,7 +1745,8 @@ def provision(logger, session_info, credentials, smbconf=None,
domainsid, names.dnsdomain, names.domaindn, lp)
logger.info("Setting up sam.ldb rootDSE marking as synchronized")
- setup_modify_ldif(samdb, setup_path("provision_rootdse_modify.ldif"))
+ setup_modify_ldif(samdb, setup_path("provision_rootdse_modify.ldif"),
+ { 'NTDSGUID' : names.ntdsguid })
secretsdb_self_join(secrets_ldb, domain=names.domain,
realm=names.realm, dnsdomain=names.dnsdomain,