[Freeipa-devel] [PATCH 0433-0434] Fix zone removal to respect forward configuration inheritance + Remove preserve_forwarding parameter from ldap_delete_zone2()

Petr Spacek pspacek at redhat.com
Fri Aug 12 10:37:40 UTC 2016


Hello,

please review attached patch set. It fixes
https://fedorahosted.org/bind-dyndb-ldap/ticket/167

The code is also available on Github:
https://github.com/pspacek/bind-dyndb-ldap/tree/fix_root_zone_removal

Patched SRPM:
https://pspacek.fedorapeople.org/bind-dyndb-ldap/bind-dyndb-ldap-10.0-3.fc24.src.rpm

COPR build:
https://copr.fedorainfracloud.org/coprs/pspacek/bind-dyndb-ldap/build/440841/

Martin Basti, please build it also in @freeipa/freeipa-master COPR so CI can
pick it up. Thank you!


Patch set description:
Fix zone removal to respect forward configuration inheritance.

Ad-hoc fwd_delete_table() calls did not respect inheritance hierarchy
in forwarding configuration. Now all manipulation with forward table
is done in fwd_configure_zone() and fully respects configuration inheritance.

There is a trick: When removing or deactivating a zone, fwd_configure_zone()
is called with empty configuration set to simulate that the zone does
not have any explicit configuration. This triggers the inheritance
logic when necessary (i.e. for the root zone).

https://fedorahosted.org/bind-dyndb-ldap/ticket/167
https://github.com/pspacek/bind-dyndb-ldap/commit/d6e413c4cc88101b902d73e05e1ce35e2fe4aedd



Remove preserve_forwarding parameter from ldap_delete_zone2().

The parameter was TRUE only when called from zone_security_change().
zone_security_change() is calling ldap_delete_zone2() in exclusive mode
anyway so there is no need to optimize this.

Removal of the parameter will make easier to centralize forwarding
configuration on one place.

https://fedorahosted.org/bind-dyndb-ldap/ticket/167
https://github.com/pspacek/bind-dyndb-ldap/commit/b40976263460d8f4aeeec2a2a8f41cc54dcd0b28

-- 
Petr^2 Spacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-dyndb-ldap-pspacek-0433-Remove-preserve_forwarding-parameter-from-ldap_delet.patch
Type: text/x-patch
Size: 4884 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160812/9a16a96a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-dyndb-ldap-pspacek-0434-Fix-zone-removal-to-respect-forward-configuration-in.patch
Type: text/x-patch
Size: 2511 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160812/9a16a96a/attachment-0001.bin>


More information about the Freeipa-devel mailing list