Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
db12c095
Commit
db12c095
authored
7 years ago
by
Thomas Woerner
Browse files
Options
Downloads
Patches
Plain Diff
library/ipajoin.py: Fix principal usage with otp
With otp usage the user supplied principal may not be used for join.
parent
6a9bc0df
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
library/ipajoin.py
+1
-1
1 addition, 1 deletion
library/ipajoin.py
roles/ipaclient/tasks/install.yml
+2
-2
2 additions, 2 deletions
roles/ipaclient/tasks/install.yml
with
3 additions
and
3 deletions
library/ipajoin.py
+
1
−
1
View file @
db12c095
...
@@ -231,7 +231,7 @@ def main():
...
@@ -231,7 +231,7 @@ def main():
options
.
ca_cert_file
=
ca_cert_file
options
.
ca_cert_file
=
ca_cert_file
options
.
unattended
=
True
options
.
unattended
=
True
options
.
principal
=
principal
options
.
principal
=
principal
if
principal
!=
""
else
None
options
.
force
=
False
options
.
force
=
False
options
.
password
=
password
options
.
password
=
password
...
...
This diff is collapsed.
Click to expand it.
roles/ipaclient/tasks/install.yml
+
2
−
2
View file @
db12c095
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
-
name
:
Install - Check if one of password and keytab are set
-
name
:
Install - Check if one of password and keytab are set
fail
:
msg="At least one of password or keytab must be specified"
fail
:
msg="At least one of password or keytab must be specified"
when
:
ipaclient_password is undefined and ipaclient_keytab is undefined
when
:
ipaclient_password is undefined and ipaclient_keytab is undefined
or ipaclient_password == "" or ipaclient_keytab == ""
-
name
:
Install - Join IPA
-
name
:
Install - Join IPA
ipajoin
:
ipajoin
:
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
basedn
:
"
{{
ipadiscovery.basedn
}}"
basedn
:
"
{{
ipadiscovery.basedn
}}"
hostname
:
"
{{
ipadiscovery.hostname
}}"
hostname
:
"
{{
ipadiscovery.hostname
}}"
force_join
:
"
{{
ipaclient_force_join
|
default(omit)
}}"
force_join
:
"
{{
ipaclient_force_join
|
default(omit)
}}"
principal
:
"
{{
ipaclient_principal
|
default(omit)
}}"
principal
:
"
{{
ipaclient_principal
if
not
ipaclient_use_otp
|
bool
else
''
}}"
password
:
"
{{
ipaclient_password
|
default(omit)
}}"
password
:
"
{{
ipaclient_password
|
default(omit)
}}"
keytab
:
"
{{
ipaclient_keytab
|
default(omit)
}}"
keytab
:
"
{{
ipaclient_keytab
|
default(omit)
}}"
#ca_cert_file: "{{ ipaclient_ca_cert_file | default(omit) }}"
#ca_cert_file: "{{ ipaclient_ca_cert_file | default(omit) }}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment