s4-provision: use get_config_basedn() in DNS setup
authorAndrew Tridgell <tridge@samba.org>
Fri, 16 Sep 2011 01:18:26 +0000 (11:18 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 19 Sep 2011 00:57:03 +0000 (10:57 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/python/samba/provision/sambadns.py

index 4d430f35eba0dab99060d27d3d97709a9a4435a3..37da5964aa899f15af0f6f277bbadd04dee1adb8 100644 (file)
@@ -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"])