summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-03-15 13:51:59 +0100
committerRob Crittenden <rcritten@redhat.com>2012-03-26 00:33:45 -0400
commit52aa008b8719f4ea678efa8957794bb6dcd13893 (patch)
tree2e15bb800d3f25974badb2acceef61b3e9e20234 /ipaserver
parentb944ad44b5ac66a253b28613cf0b722c4d4ad444 (diff)
downloadfreeipa-52aa008b8719f4ea678efa8957794bb6dcd13893.tar.gz
freeipa-52aa008b8719f4ea678efa8957794bb6dcd13893.tar.xz
freeipa-52aa008b8719f4ea678efa8957794bb6dcd13893.zip
Improve user awareness about dnsconfig
Global DNS configuration is a nice tool to maintain a common DNS settings stored in LDAP which are then used for all enrolled IPA servers. However, the settings stored in LDAP override local settings in named.conf on DNS servers. This patch adds more information about global DNS configuration options in install scripts and DNS module help. https://fedorahosted.org/freeipa/ticket/2525
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/bindinstance.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index a37a29303..ba8b7b5cc 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -637,6 +637,26 @@ class BindInstance(service.Service):
# remove also master NS record from the reverse zone
del_rr(rzone, "@", "NS", fqdn+".")
+ def check_global_configuration(self):
+ """
+ Check global DNS configuration in LDAP server and inform user when it
+ set and thus overrides his configured options in named.conf.
+ """
+ result = api.Command.dnsconfig_show()
+ global_conf_set = any(param in result['result'] for \
+ param in api.Object['dnsconfig'].params)
+
+ if not global_conf_set:
+ print "Global DNS configuration in LDAP server is empty"
+ print "You can use 'dnsconfig-mod' command to set global DNS options that"
+ print "would override settings in local named.conf files"
+ return
+
+ print "Global DNS configuration in LDAP server is not empty"
+ print "The following configuration options override local settings in named.conf:"
+ print ""
+ textui = ipalib.cli.textui()
+ api.Command.dnsconfig_show.output_for_cli(textui, result, None, reverse=False)
def uninstall(self):
if self.is_configured():