s4-dns: Reload DNS zones from dsdb when zones are modified through RPC or DRS
commit4fb29e9347271acd66833d471a84e39a525f4f18
authorSamuel Cabrero <samuelcabrero@kernevil.me>
Tue, 16 Dec 2014 09:58:50 +0000 (16 10:58 +0100)
committerGarming Sam <garming@samba.org>
Mon, 22 Dec 2014 04:57:08 +0000 (22 05:57 +0100)
tree57c4021f0da81907e1fd5029b00257ee92154730
parentee4324ddc24dc6d92b2fdcf87e8dc63c631e2444
s4-dns: Reload DNS zones from dsdb when zones are modified through RPC or DRS

Setup a RPC management call on the internal DNS server triggered a new LDB
module which sniffs dnsZone object add, delete and modify operations. This
way the notification is triggered when zones are modified either from RPC or
replicated by inbound DRS.

Signed-off-by: Samuel Cabrero <samuelcabrero@kernevil.me>
(shadowed variable error corrected by abartlet)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dns_server/dns_server.c
source4/dsdb/samdb/ldb_modules/dns_notify.c [new file with mode: 0644]
source4/dsdb/samdb/ldb_modules/samba_dsdb.c
source4/dsdb/samdb/ldb_modules/wscript_build_server
source4/librpc/idl/irpc.idl