dns: custom match rule for DNS records to be tombstoned
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Mon, 2 Jul 2018 01:48:06 +0000 (13:48 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 02:31:54 +0000 (04:31 +0200)
commit00002b8df9b865b896d264ee22bf6f22cf935f56
tree456353337341d8466db4855505cfdee9af7c4902
parent418cd93f4c9c90b0f5002e32203be8281af660cf
dns: custom match rule for DNS records to be tombstoned

A custom match rule for records to be tombstoned by the scavenging process.
Needed because DNS records are a multi-valued attribute on name records, so
without a custom match rule we'd have entire zones into memory to search for
expired records.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10812

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/ldb_matching_rules.c
lib/ldb-samba/ldb_matching_rules.h
python/samba/tests/dns.py
selftest/knownfail.d/dns
selftest/knownfail.d/dns-scavenging
source4/setup/schema_samba4.ldif