From: Greg Hudson Date: Thu, 21 May 2020 18:15:25 +0000 (-0400) Subject: Fix SPNEGO acceptor mech filtering X-Git-Tag: krb5-1.19-beta1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e25918cb9efd7361aa78d2d96cd097dd34fdf35d;p=thirdparty%2Fkrb5.git Fix SPNEGO acceptor mech filtering Commit c2ca2f26eaf817a6a7ed42257c380437ab802bd9 (ticket 8851) accidentally changed the SPNEGO acceptor code to filter mechanisms by the obtainability of initiator credentials rather than acceptor credentials, when the default acceptor credential is used. ticket: 8908 (new) tags: pullup target_version: 1.18-next --- diff --git a/src/lib/gssapi/spnego/spnego_mech.c b/src/lib/gssapi/spnego/spnego_mech.c index 28e00c131f..68e389748f 100644 --- a/src/lib/gssapi/spnego/spnego_mech.c +++ b/src/lib/gssapi/spnego/spnego_mech.c @@ -1380,7 +1380,7 @@ acc_ctx_new(OM_uint32 *minor_status, goto cleanup; } - ret = get_negotiable_mechs(minor_status, sc, spcred, GSS_C_INITIATE); + ret = get_negotiable_mechs(minor_status, sc, spcred, GSS_C_ACCEPT); if (ret != GSS_S_COMPLETE) { *return_token = NO_TOKEN_SEND; goto cleanup;