Skip to content

Commit

Permalink
Fix gss_inquire_names_for_mech() on MS krb5 mech
Browse files Browse the repository at this point in the history
Allow the krb5 mech to query names for the gss_mech_krb5_wrong OID
(the erroneous OID used in old Microsoft SPNEGO implementations).

[ghudson@mit.edu: edit commit message]

(cherry picked from commit 95736f7)

ticket: 8324 (new)
version_fixed: 1.12.5
status: resolved
  • Loading branch information
tkuthan authored and tlyu committed Dec 10, 2015
1 parent 2ecf6c5 commit a8c8b08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/gssapi/krb5/inq_names.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ krb5_gss_inquire_names_for_mech(minor_status, mechanism, name_types)
if ((mechanism != GSS_C_NULL_OID) &&
!g_OID_equal(gss_mech_krb5, mechanism) &&
!g_OID_equal(gss_mech_krb5_old, mechanism) &&
!g_OID_equal(gss_mech_krb5_wrong, mechanism) &&
!g_OID_equal(gss_mech_iakerb, mechanism)) {
*minor_status = 0;
return(GSS_S_BAD_MECH);
Expand Down

0 comments on commit a8c8b08

Please sign in to comment.