Skip to content

Commit

Permalink
Resolves #19. Revert to not using punctation in OTP, and use single q…
Browse files Browse the repository at this point in the history
…uotes in shell commands
  • Loading branch information
ggiesen committed Nov 10, 2021
1 parent 2a75304 commit f2e5881
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions freeipa/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ include:
- freeipa.client.cert
{%- if client.install_principal is defined %}
{%- if salt['salt_version.greater_than']('Aluminium') %}
{%- set otp = salt['random.get_str'](length=20, punctuation=False) %}
{%- else %}
{%- set otp = salt['random.get_str'](20) %}
{%- endif %}
freeipa_push_principal:
file.managed:
Expand Down Expand Up @@ -160,9 +164,9 @@ freeipa_client_install:
{%- if client.realm is defined %} --realm {{ client.realm }}{%- endif %}
--hostname {{ ipa_host }}
{%- if otp is defined %}
-w {{ otp }}
-w '{{ otp }}'
{%- else %}
-w {{ client.otp }}
-w '{{ client.otp }}'
{%- endif %}
{%- if not client.get('ntp', {}).get('enabled', True) %} --no-ntp{%- endif %}
{%- if client.get('mkhomedir', True) %} --mkhomedir{%- endif %}
Expand Down

0 comments on commit f2e5881

Please sign in to comment.