Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 833a173

Browse files
authored
Merge pull request #194 from szEvEz/master
set 'GSSAPIAuthentication yes' if variable 'ssh_gssapi_support' is set to 'true'
2 parents 96053b7 + ed9447a commit 833a173

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Warning: This role disables root-login on the target server! Please make sure yo
3232
|`ssh_allow_agent_forwarding` | false | false to disable Agent Forwarding. Set to true to allow Agent Forwarding.|
3333
|`ssh_pam_support` | true | true if SSH has PAM support.|
3434
|`ssh_use_pam` | false | false to disable pam authentication.|
35-
|`ssh_gssapi_support` | true | true if SSH has GSSAPI support.|
35+
|`ssh_gssapi_support` | false | true if SSH has GSSAPI support.|
3636
|`ssh_kerberos_support` | true | true if SSH has Kerberos support.|
3737
|`ssh_deny_users` | '' | if specified, login is disallowed for user names that match one of the patterns.|
3838
|`ssh_allow_users` | '' | if specified, login is allowed only for user names that match one of the patterns.|

defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ ssh_google_auth: false # sshd
7474
ssh_pam_device: false # sshd
7575

7676
# true if SSH support GSSAPI
77-
ssh_gssapi_support: true
77+
ssh_gssapi_support: false
7878

7979
# true if SSH support Kerberos
8080
ssh_kerberos_support: true
@@ -220,4 +220,4 @@ ssh_server_revoked_keys: []
220220

221221
# Set to false to turn the role into a no-op. Useful when using
222222
# the Ansible role dependency mechanism.
223-
ssh_hardening_enabled: true
223+
ssh_hardening_enabled: true

templates/opensshd.conf.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,9 @@ KerberosTicketCleanup yes
119119
#KerberosGetAFSToken no
120120
{% endif %}
121121

122-
{% if ssh_gssapi_support -%}
123122
# Only enable GSSAPI authentication if it is configured.
124-
GSSAPIAuthentication no
123+
GSSAPIAuthentication {{ 'yes' if ssh_gssapi_support else 'no' }}
125124
GSSAPICleanupCredentials yes
126-
{% endif %}
127125

128126
# In case you don't use PAM (`UsePAM no`), you can alternatively restrict users and groups here. For key-based authentication this is not necessary, since all keys must be explicitely enabled.
129127
{% if ssh_deny_users -%}

0 commit comments

Comments
 (0)