diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-02-27 17:09:56 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-06-10 21:48:20 +0200 |
commit | e7bc97433377daaf9cb8fde7fdea79f5848ec535 (patch) | |
tree | 2e33262ffcbd8a0cb75b5e0f83a06561e49c1702 /python | |
parent | 9186cc7143cdeec2233df1b3322297a6974d9d2a (diff) | |
download | samba-e7bc97433377daaf9cb8fde7fdea79f5848ec535.tar.gz |
pydns: Also return the DN of the LDB object when finding a DNS record
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/remove_dc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/remove_dc.py b/python/samba/remove_dc.py index 61b5937ba7a..4c8ee892464 100644 --- a/python/samba/remove_dc.py +++ b/python/samba/remove_dc.py @@ -97,7 +97,7 @@ def remove_dns_references(samdb, logger, dnsHostName): dnsHostNameUpper = dnsHostName.upper() try: - primary_recs = samdb.dns_lookup(dnsHostName) + (dn, primary_recs) = samdb.dns_lookup(dnsHostName) except RuntimeError as (enum, estr): if enum == werror.WERR_DNS_ERROR_NAME_DOES_NOT_EXIST: return @@ -140,7 +140,7 @@ def remove_dns_references(samdb, logger, dnsHostName): for a_name in a_names_to_remove_from: try: logger.debug("checking for DNS records to remove on %s" % a_name) - a_recs = samdb.dns_lookup(a_name) + (a_rec_dn, a_recs) = samdb.dns_lookup(a_name) except RuntimeError as (enum, estr): if enum == werror.WERR_DNS_ERROR_NAME_DOES_NOT_EXIST: return |