diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-10-24 18:35:48 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-10-26 08:52:50 +0200 |
commit | b26d0dcc04e821543b8582328e99e630b752768f (patch) | |
tree | a6e2e651260456ab6147f61217561dac9fdbeca0 /install/tools/ipa-dns-install | |
parent | 9bdbdbc0f32b87d0fcdc2b9faa98e7c674b2464d (diff) | |
download | freeipa-b26d0dcc04e821543b8582328e99e630b752768f.tar.gz freeipa-b26d0dcc04e821543b8582328e99e630b752768f.tar.xz freeipa-b26d0dcc04e821543b8582328e99e630b752768f.zip |
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
Diffstat (limited to 'install/tools/ipa-dns-install')
-rwxr-xr-x | install/tools/ipa-dns-install | 3 |
1 files changed, 2 insertions, 1 deletions
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, |