diff options
author | Ondrej Hamada <ohamada@redhat.com> | 2012-01-20 13:44:48 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-01-22 22:01:40 -0500 |
commit | f7b4eb6a0918c0b73d4b98f47dcd76fa4e8072f5 (patch) | |
tree | 4c1fa254d67165f3d5d1d4ab42d5678eb4426d37 /ipa-client/ipa-install | |
parent | f3b606b627ea317e87b89ffb6ce2f0fb745f38aa (diff) | |
download | freeipa-f7b4eb6a0918c0b73d4b98f47dcd76fa4e8072f5.tar.gz freeipa-f7b4eb6a0918c0b73d4b98f47dcd76fa4e8072f5.tar.xz freeipa-f7b4eb6a0918c0b73d4b98f47dcd76fa4e8072f5.zip |
localhost.localdomain clients refused to join
Machines with hostname 'localhost' or 'localhost.localdomain' are
refused from joining IPA domain and proper error message is shown.
The hostname check is done both in 'ipa-client-install' script and in
'ipa-join'.
https://fedorahosted.org/freeipa/ticket/2112
Diffstat (limited to 'ipa-client/ipa-install')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 8e945ce90..f2f4973fb 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -872,6 +872,9 @@ def install(options, env, fstore, statestore): if hostname != hostname.lower(): print 'Invalid hostname \'%s\', must be lower-case.' % hostname return CLIENT_INSTALL_ERROR + if (hostname == 'localhost') or (hostname == 'localhost.localdomain'): + print 'Invalid hostname, \'%s\' must not be used.' % hostname + return CLIENT_INSTALL_ERROR # when installing with '--no-sssd' option, check whether nss-ldap is installed if not options.sssd: |