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:
@ -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"])
|
||||
|
Reference in New Issue
Block a user