diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-09-22 15:32:57 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-10-26 05:11:21 +0100 |
commit | 2191fcaedc5efb703730839f09606fd0fd27da94 (patch) | |
tree | f3a22865b3c630772f370114ac80d650530c57bf /python/samba/samdb.py | |
parent | b48776d78b446ad4abd4a6bc2ba6b488a29b11d2 (diff) | |
download | samba-2191fcaedc5efb703730839f09606fd0fd27da94.tar.gz |
dns_server: Add python method to extract a DNS entry from a ldb.MessageElement
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'python/samba/samdb.py')
-rw-r--r-- | python/samba/samdb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/samba/samdb.py b/python/samba/samdb.py index 7081e3da6e1..94f81f81628 100644 --- a/python/samba/samdb.py +++ b/python/samba/samdb.py @@ -926,6 +926,10 @@ accountExpires: %u '''Do a DNS lookup in the database, returns the NDR database structures''' return dsdb_dns.lookup(self, dns_name) + def dns_extract(self, el): + '''Return the NDR database structures from a dnsRecord element''' + return dsdb_dns.extract(el) + def dns_replace(self, dns_name, new_records): '''Do a DNS modification on the database, sets the NDR database structures''' return dsdb_dns.replace(self, dns_name, new_records) |