OpenBSD does not support GSSAPI Authentication #598
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Howdy!
OpenBSD does not support GSSAPI Authentication, and is really not happy when GSSAPI-options are present in its configfiles.
This patch reverts the changes made in ed9447a, which sort of ruined the changes introduced in dev-sec/ansible-ssh-hardening/pull/171. It also introduces a new variable,
ssh_gssapi_auth
to enable GSSAPI authentication.After creating this patch, I realized that this patch will break GSSAPI authentication for anyone who has enabled this today. Today, setting
ssh_gssapi_support
totrue
will enable GSSAPI authentication. After this patch, the same will merely indicate that your system supports GSSAPI authentication. You'll need to setssh_gssapi_auth
totrue
to enable GSSAPI authentication.I believe that this is the most "correct" solution. But as mentioned, it will break GSSAPI authentication for anyone who uses it today.
Another solution is to switch the name of the two options
ssh_gssapi_auth
andssh_gssapi_support
, and settingssh_gssapi_auth
to true by default. Doing this will not break any current installations using GSSAPI authentication. BUT, it will be semantically confusing to usessh_gssapi_auth
to indicate that the system supports GSSAPI authentication, andssh_gssapi_support
to turn it on or off.A third solution could be to simply introduce the conditional
if ansible_os_family != "OpenBSD"
around the GSSAPI-lines in the jinja-templates. This might be the simplest solution.It is also possible to just drop OpenBSD-support (this is the "do nothing"-solution), but I really want to use this on all my systems, and I'd be happy to contribute the code to get this to work :)
Please let me know what you think of this, and I'll ammend my patch accordingly.