Skip to content

Commit

Permalink
T6013: fix jinja template condition
Browse files Browse the repository at this point in the history
  • Loading branch information
takehaya committed Dec 28, 2024
1 parent 0ae9aad commit 4b14d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/templates/ssh/sshd_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ RekeyLimit {{ rekey.data }}M {{ rekey.time + 'M' if rekey.time is vyos_defined }
TrustedUserCAKeys /etc/ssh/trusted_user_ca_key
{% endif %}

{% if trusted_user_ca_key.bind-user is vyos_defined %}
{% if trusted_user_ca_key is vyos_defined and trusted_user_ca_key.bind_user is vyos_defined %}
AuthorizedPrincipalsFile /etc/ssh/authorized_principals/%u
{% elif trusted_user_ca_key is vyos_defined %}
AuthorizedPrincipalsFile none
Expand Down

0 comments on commit 4b14d9d

Please sign in to comment.