summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-03-07 15:54:38 +0100
committerMartin Kosek <mkosek@redhat.com>2012-03-20 15:40:08 +0100
commit9b562f7377e2efe26742740108a398f4ebb3df64 (patch)
tree87bb557920cbffa9a3cca80196ae0290d3d16e00 /ipalib
parent9d0ef96c670f0ddae12f4a4cbf12d9e4e58607da (diff)
downloadfreeipa-9b562f7377e2efe26742740108a398f4ebb3df64.tar.gz
freeipa-9b562f7377e2efe26742740108a398f4ebb3df64.tar.xz
freeipa-9b562f7377e2efe26742740108a398f4ebb3df64.zip
Add missing global options in dnsconfig
Add a support for new global options in bind-dyndb-ldap, that is: * idnsforwardpolicy: Default policy for conditional forwarding * idnsallowsyncptr: Allow globaly PTR synchronization for dynamic updates * idnszonerefresh: Default interval between regular polls of the name server for new DNS zones https://fedorahosted.org/freeipa/ticket/2439
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/dns.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 251db476e..a1d495449 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -2640,7 +2640,10 @@ class dnsconfig(LDAPObject):
DNS global configuration object
"""
object_name = _('DNS configuration options')
- default_attributes = [ 'idnsforwarders', ]
+ default_attributes = [
+ 'idnsforwardpolicy', 'idnsforwarders', 'idnsallowsyncptr',
+ 'idnszonerefresh'
+ ]
label = _('DNS Global Configuration')
label_singular = _('DNS Global Configuration')
@@ -2654,6 +2657,22 @@ class dnsconfig(LDAPObject):
'for each forwarder using a standard format "IP_ADDRESS port PORT"'),
csv=True,
),
+ StrEnum('idnsforwardpolicy?',
+ cli_name='forward_policy',
+ 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'),
+ ),
+ Int('idnszonerefresh?',
+ cli_name='zone_refresh',
+ label=_('Zone refresh interval'),
+ doc=_('An interval between regular polls of the name server for new DNS zones'),
+ minvalue=0,
+ ),
)
def get_dn(self, *keys, **kwargs):