Apache2, Kerberos: gss_accept_sec_context() failed: An unsupported mechanism was requested
In a simple setup, using mod_auth_gssapi and FreeIPA as the krb5 server and to generate keytabs, I found out that adding the following next to the AuthType
command addressed the issue.
BrowserMatch Windows gssapi-no-negotiate
Based on the answer from andsens, it seems indeed this is happening on Windows clients that try to use NTLM. GssapiAllowedMech krb5
and GssapiBasicAuthMech krb5
don't give a successful outcome to the negotiation, so the only solution seems to be to disable the negotiation. I cannot guarantee this is accurate, though, but it worked for me.
The corresponding documentation is here