Skip to content

Commit

Permalink
accept SPNEGO legacy krb5 OID
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmturner committed Oct 2, 2017
1 parent 5f0e50b commit 9c5c7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func SPNEGOKRB5Authenticate(f http.Handler, kt keytab.Keytab, sa string, l *log.
rejectSPNEGO(w, l, fmt.Sprintf("%v - SPNEGO negotiation token is not a NegTokenInit: %v", r.RemoteAddr, err))
return
}
if !spnego.NegTokenInit.MechTypes[0].Equal(gssapi.MechTypeOIDKRB5) {
if !spnego.NegTokenInit.MechTypes[0].Equal(gssapi.MechTypeOIDKRB5) && !spnego.NegTokenInit.MechTypes[0].Equal(gssapi.MechTypeOIDMSLegacyKRB5) {
rejectSPNEGO(w, l, fmt.Sprintf("%v - SPNEGO OID of MechToken is not of type KRB5", r.RemoteAddr))
return
}
Expand Down

0 comments on commit 9c5c7ec

Please sign in to comment.