Skip to content

Commit 54c8e6a

Browse files
committed
Split off ssh_gssapi_delegation into own variable
Signed-off-by: Maxim Burgerhout <[email protected]>
1 parent 8baab75 commit 54c8e6a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

roles/ssh_hardening/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ Warning: This role disables root-login on the target server! Please make sure yo
7676
- Description: false to disable pam authentication.
7777
- `ssh_gssapi_support`
7878
- Default: `false`
79-
- Description: true if SSH has GSSAPI support.
79+
- Description: Set to true to enable GSSAPI authentication (both client and server).
80+
- `ssh_gssapi_delegation`
81+
- Default: `false`
82+
- Description: Set to true to enable GSSAPI credential forwarding.
8083
- `ssh_kerberos_support`
8184
- Default: `true`
8285
- Description: true if SSH has Kerberos support.

roles/ssh_hardening/templates/openssh.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ RSAAuthentication yes
104104
PasswordAuthentication {{ 'yes' if ssh_client_password_login else 'no' }}
105105

106106
# Only use GSSAPIAuthentication if implemented on the network.
107-
GSSAPIAuthentication {{ 'yes' if ssh_gssapi_support else 'no' }}
108-
GSSAPIDelegateCredentials {{ 'yes' if ssh_gssapi_support else 'no' }}
107+
GSSAPIAuthentication {{ 'yes' if (ssh_gssapi_support|bool) else 'no' }}
108+
GSSAPIDelegateCredentials {{ 'yes' if (ssh_gssapi_delegation|bool) else 'no' }}
109109

110110
# Disable tunneling
111111
Tunnel no

0 commit comments

Comments
 (0)