pydns: Add replace_by_dn()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 Oct 2015 03:56:41 +0000 (16:56 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 26 Oct 2015 04:11:22 +0000 (05:11 +0100)
commit3226077627c9301bd27b9bdff6ea5db4c1579659
tree17d0a8f205f7a51d019d3d6ced6fce9fad57c05e
parenta3b92a50d13a0a0d444b156c6dcffa0eebb9c03b
pydns: Add replace_by_dn()

This allows us to find a DNS record by searching LDB and unpacking the dnsRecord
but replace the record using the common code that will create a tombstone

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/samdb.py
source4/dns_server/pydns.c