mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
ipa-client-install: Always pass hostname to the ipa-join
The ipa-client-install script and ipa-join use different methods of resolving the hostname, the former uses gethostbyaddr() call, while the latter reads the "uinfo.nodename". This can result ipa-client-install failures in case of broken PTR records. https://fedorahosted.org/freeipa/ticket/4027
This commit is contained in:
parent
9677308caa
commit
89ab877c5c
@ -2243,13 +2243,13 @@ def install(options, env, fstore, statestore):
|
||||
(ccache_fd, ccache_name) = tempfile.mkstemp()
|
||||
os.close(ccache_fd)
|
||||
env['KRB5CCNAME'] = os.environ['KRB5CCNAME'] = ccache_name
|
||||
join_args = ["/usr/sbin/ipa-join", "-s", cli_server[0], "-b", str(realm_to_suffix(cli_realm))]
|
||||
join_args = ["/usr/sbin/ipa-join",
|
||||
"-s", cli_server[0],
|
||||
"-b", str(realm_to_suffix(cli_realm)),
|
||||
"-h", hostname]
|
||||
if options.debug:
|
||||
join_args.append("-d")
|
||||
env['XMLRPC_TRACE_CURL'] = 'yes'
|
||||
if options.hostname:
|
||||
join_args.append("-h")
|
||||
join_args.append(options.hostname)
|
||||
if options.force_join:
|
||||
join_args.append("-f")
|
||||
if options.principal is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user