From f79d6ee929884ad76f2a88fc67c660fec31b8ed7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 16 Sep 2011 11:18:26 +1000 Subject: s4-provision: use get_config_basedn() in DNS setup Pair-Programmed-With: Andrew Bartlett --- source4/scripting/python/samba/provision/sambadns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting/python') 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"]) -- cgit