diff options
-rw-r--r-- | source4/scripting/python/samba/provision/sambadns.py | 2 |
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"]) |