mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 03:05:54 +00:00
Modify ipahost module: the authentication is done locally on the controller
node and the credential cache is copied to the managed node ipahost module is also using facts gathered from the server to find the domain and realm.
This commit is contained in:
@@ -151,7 +151,10 @@ def get_ipa_conf():
|
||||
parser.read(paths.IPA_DEFAULT_CONF)
|
||||
result = dict()
|
||||
for item in ['basedn', 'realm', 'domain', 'server', 'host', 'xmlrpc_uri']:
|
||||
value = parser.get('global', item)
|
||||
if parser.has_option('global', item):
|
||||
value = parser.get('global', item)
|
||||
else:
|
||||
value = None
|
||||
if value:
|
||||
result[item] = value
|
||||
|
||||
@@ -251,6 +254,7 @@ def ensure_ipa_client(module):
|
||||
if keytab:
|
||||
cmd.append("--keytab")
|
||||
cmd.append(keytab)
|
||||
cmd.append("-d")
|
||||
if otp:
|
||||
cmd.append("--password")
|
||||
cmd.append(otp)
|
||||
|
||||
Reference in New Issue
Block a user