summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-02-19 15:57:53 -0500
committerSimo Sorce <ssorce@redhat.com>2008-02-19 15:57:53 -0500
commit30195fb5fb72ebfc8a07972849baa63406e5ae20 (patch)
treee91b524f234fdb05a8925ccfb038e14612607bd2 /ipa-client
parent0ae42b28de803bcf024eb9b2a3560b9a0702ce4b (diff)
downloadfreeipa-30195fb5fb72ebfc8a07972849baa63406e5ae20.tar.gz
freeipa-30195fb5fb72ebfc8a07972849baa63406e5ae20.tar.xz
freeipa-30195fb5fb72ebfc8a07972849baa63406e5ae20.zip
Pass in server and domain parameters if provided, so that they are not ignored
Diffstat (limited to 'ipa-client')
-rw-r--r--ipa-client/ipa-install/ipa-client-install11
1 files changed, 8 insertions, 3 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 41781f3e8..177a727e4 100644
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -87,7 +87,7 @@ def main():
# Create the discovery instance
ds = ipaclient.ipadiscovery.IPADiscovery()
- ret = ds.search()
+ ret = ds.search(domain=options.domain, server=options.server)
srv = ""
if ret == -10:
print "Can't get the fully qualified name of this host"
@@ -121,12 +121,17 @@ def main():
if dnsok:
print "Discovery was successful!"
elif not options.unattended:
- print "\nThe failure to use DNS to find your IPA server indicates that your resolv.conf file is not properly configured\n."
+ print "\nThe failure to use DNS to find your IPA server indicates that your resolv.conf file is not properly configured.\n"
print "Autodiscovery of servers for failover cannot work with this configuration.\n"
- print "If you proceed with the installation, services will be configured to always access the discovered server for all operation and will not fail over to other servers in case of failure\n"
+ print "If you proceed with the installation, services will be configured to always access the discovered server for all operation and will not fail over to other servers in case of failure.\n"
if not ask_for_confirmation("Do you want to proceed and configure the system with fixed values with no DNS discovery?"):
return ret
+ if options.realm_name != ds.getRealmName():
+ if not options.unattended:
+ print "ERROR: The provided realm name: ["+options.realm_name+"] does not match with the discovered one: ["+ds.getRealmName()+"]\n"
+ return -3
+
print "Realm: "+ds.getRealmName()
print "DNS Domain: "+ds.getDomainName()
print "IPA Server: "+ds.getServerName()