From 4b14d9d2113a75b8b5065e0096e75e14bfc768bd Mon Sep 17 00:00:00 2001 From: Takeru Hayasaka Date: Sat, 28 Dec 2024 20:50:23 +0000 Subject: [PATCH] T6013: fix jinja template condition --- data/templates/ssh/sshd_config.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/templates/ssh/sshd_config.j2 b/data/templates/ssh/sshd_config.j2 index 651bb445a9..d6e31b0f4e 100644 --- a/data/templates/ssh/sshd_config.j2 +++ b/data/templates/ssh/sshd_config.j2 @@ -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