1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

s4-provision: use get_config_basedn() in DNS setup

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell
2011-09-16 11:18:26 +10:00
parent 579fd43057
commit f79d6ee929

View 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"])