From b26d0dcc04e821543b8582328e99e630b752768f Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Mon, 24 Oct 2011 18:35:48 +0200 Subject: Add --zonemgr/--admin-mail validator Do at least a basic validation of DNS zone manager mail address. Do not require '@' to be in the mail address as the SOA record stores this value without it and people may be used to configure it that way. '@' is always removed by the installer/dns plugin before the DNS zone is created. https://fedorahosted.org/freeipa/ticket/1966 --- install/tools/ipa-dns-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/tools/ipa-dns-install') diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install index d81b6a2e8..7841c21dc 100755 --- a/install/tools/ipa-dns-install +++ b/install/tools/ipa-dns-install @@ -48,7 +48,8 @@ def parse_options(): parser.add_option("--reverse-zone", dest="reverse_zone", help="The reverse DNS zone to use") parser.add_option("--no-reverse", dest="no_reverse", action="store_true", default=False, help="Do not create reverse DNS zone") - parser.add_option("--zonemgr", dest="zonemgr", + parser.add_option("--zonemgr", action="callback", callback=bindinstance.zonemgr_callback, + type="string", help="DNS zone manager e-mail address. Defaults to root") parser.add_option("--zone-notif", dest="zone_notif", action="store_true", default=False, -- cgit