summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorGabe <redhatrises@gmail.com>2015-04-28 07:34:07 -0600
committerPetr Vobornik <pvoborni@redhat.com>2015-05-05 11:44:51 +0200
commit26c1851e98f31f11cf52b36bcb7e399ccbb2af17 (patch)
treecad9a344c1b603fdbca323c2ccc9db29a691f399 /install/tools
parent3debc7b2b54b7926dcd2b26a37b3dc0677c3bc61 (diff)
downloadfreeipa-26c1851e98f31f11cf52b36bcb7e399ccbb2af17.tar.gz
freeipa-26c1851e98f31f11cf52b36bcb7e399ccbb2af17.tar.xz
freeipa-26c1851e98f31f11cf52b36bcb7e399ccbb2af17.zip
Remove unneeded ip-address option in ipa-adtrust-install
https://fedorahosted.org/freeipa/ticket/4575 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-adtrust-install36
-rw-r--r--install/tools/man/ipa-adtrust-install.13
2 files changed, 1 insertions, 38 deletions
diff --git a/install/tools/ipa-adtrust-install b/install/tools/ipa-adtrust-install
index ac1d13a13..a4124078f 100755
--- a/install/tools/ipa-adtrust-install
+++ b/install/tools/ipa-adtrust-install
@@ -39,8 +39,6 @@ def parse_options():
parser = IPAOptionParser(version=version.VERSION)
parser.add_option("-d", "--debug", dest="debug", action="store_true",
default=False, help="print debugging information")
- parser.add_option("--ip-address", dest="ip_address",
- type="ip", ip_local=True, help="Master Server IP Address")
parser.add_option("--netbios-name", dest="netbios_name",
help="NetBIOS name of the IPA domain")
parser.add_option("--no-msdcs", dest="no_msdcs", action="store_true",
@@ -290,38 +288,6 @@ def main():
if not options.unattended and not options.enable_compat:
options.enable_compat = enable_compat_tree()
- # Check we have a public IP that is associated with the hostname
- ip = None
- try:
- hostaddr = resolve_host(api.env.host)
- if len(hostaddr) > 1:
- print >> sys.stderr, "The server hostname resolves to more than one address:"
- for addr in hostaddr:
- print >> sys.stderr, " %s" % addr
-
- if options.ip_address:
- if str(options.ip_address) not in hostaddr:
- print >> sys.stderr, "Address passed in --ip-address did not match any resolved"
- print >> sys.stderr, "address!"
- sys.exit(1)
- print "Selected IP address:", str(options.ip_address)
- ip = options.ip_address
- else:
- if options.unattended:
- print >> sys.stderr, "Please use --ip-address option to specify the address"
- sys.exit(1)
- else:
- ip = read_ip_address(api.env.host, fstore)
- else:
- ip = hostaddr and ipautil.CheckedIPAddress(hostaddr[0], match_local=True)
- except Exception, e:
- print "Error: Invalid IP Address %s: %s" % (ip, e)
- print "Aborting installation"
- sys.exit(1)
-
- ip_address = str(ip)
- root_logger.debug("will use ip_address: %s\n", ip_address)
-
admin_password = options.admin_password
if not (options.unattended or admin_password):
admin_password = read_admin_password(options.admin_name)
@@ -406,7 +372,7 @@ def main():
smb = adtrustinstance.ADTRUSTInstance(fstore)
smb.realm = api.env.realm
smb.autobind = ipaldap.AUTOBIND_ENABLED
- smb.setup(api.env.host, ip_address, api.env.realm, api.env.domain,
+ smb.setup(api.env.host, api.env.realm, api.env.domain,
netbios_name, reset_netbios_name,
options.rid_base, options.secondary_rid_base,
options.no_msdcs, options.add_sids,
diff --git a/install/tools/man/ipa-adtrust-install.1 b/install/tools/man/ipa-adtrust-install.1
index b0aa8ceef..a32eefb0e 100644
--- a/install/tools/man/ipa-adtrust-install.1
+++ b/install/tools/man/ipa-adtrust-install.1
@@ -41,9 +41,6 @@ might be affected as well.
\fB\-d\fR, \fB\-\-debug\fR
Enable debug logging when more verbose output is needed
.TP
-\fB\-\-ip\-address\fR=\fIIP_ADDRESS\fR
-The IP address of the IPA server. If not provided then this is determined based on the hostname of the server.
-.TP
\fB\-\-netbios\-name\fR=\fINETBIOS_NAME\fR
The NetBIOS name for the IPA domain. If not provided then this is determined
based on the leading component of the DNS domain name. Running