Update to 2023-05-03 11:00

This commit is contained in:
Daniel Berteaud
2023-05-03 11:00:11 +02:00
parent e8adef3130
commit 4e82ed1972
5 changed files with 18 additions and 7 deletions

View File

@@ -14,9 +14,10 @@ UseDNS {{ sshd_use_dns | ternary('yes', 'no') }}
{% if sshd_authorized_keys_command is defined %}
AuthorizedKeysCommand {{ sshd_authorized_keys_command }}
{% if sshd_authorized_keys_command_user is defined %}
AuthorizedKeysCommandUser {{ sshd_authorized_keys_command_user }}
{% endif %}
AuthorizedKeysCommandUser {{ sshd_authorized_keys_command_user | default('nobody') }}
{% elif ad_auth | default(False) == True and ad_ldap_user_ssh_public_key is defined %}
AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys
AuthorizedKeysCommandUser nobody
{% endif %}
HostKey /etc/ssh/ssh_host_rsa_key