summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-09-16 11:18:26 +1000
committerAndrew Tridgell <tridge@samba.org>2011-09-19 10:57:03 +1000
commitf79d6ee929884ad76f2a88fc67c660fec31b8ed7 (patch)
treef4d2611692c3782752b2e5dcb5737a4ac6ec8f2c
parent579fd43057e5d838ef24a72af20203eda8199204 (diff)
downloadsamba-f79d6ee929884ad76f2a88fc67c660fec31b8ed7.tar.gz
samba-f79d6ee929884ad76f2a88fc67c660fec31b8ed7.tar.bz2
samba-f79d6ee929884ad76f2a88fc67c660fec31b8ed7.zip
s4-provision: use get_config_basedn() in DNS setup
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/scripting/python/samba/provision/sambadns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision/sambadns.py b/source4/scripting/python/samba/provision/sambadns.py
index 4d430f35eb..37da5964aa 100644
--- a/source4/scripting/python/samba/provision/sambadns.py
+++ b/source4/scripting/python/samba/provision/sambadns.py
@@ -51,7 +51,7 @@ def get_domainguid(samdb, domaindn):
return domainguid
def get_ntdsguid(samdb, domaindn):
- configdn = "CN=Configuration,%s" % domaindn
+ configdn = samdb.get_config_basedn()
res1 = samdb.search(base="OU=Domain Controllers,%s" % domaindn, scope=ldb.SCOPE_ONELEVEL,
attrs=["dNSHostName"])