From 1c898e388b4777e0dfd0dd7577bbb4971e308605 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 14 Feb 2012 11:11:41 +0100 Subject: Add API for PTR sync control New version of bind-dyndb-ldap plugin have an ability to automatically update machine reverse address when its forward address is updated via GSS-TSIG update. The reverse zone must be managed by FreeIPA as well in order of this feature to work. As it would not be secure to enable this behaviour for all zones there is a global attribute that can enable PTR sync for all zones and also a per-zone attribute that can enable for chosen zones only. This patch adds an API for this control. https://fedorahosted.org/freeipa/ticket/2176 --- ipalib/plugins/dns.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipalib/plugins/dns.py') diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 79e7407a..aa2efdef 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -1357,6 +1357,11 @@ class dnszone(LDAPObject): label=_('Forward policy'), values=(u'only', u'first',), ), + Bool('idnsallowsyncptr?', + cli_name='allow_sync_ptr', + label=_('Allow PTR sync'), + doc=_('Allow synchronization of forward (A, AAAA) and reverse (PTR) records in the zone'), + ), ) api.register(dnszone) -- cgit