diff --git a/service/http.go b/service/http.go index c05bea73..cb11e7df 100644 --- a/service/http.go +++ b/service/http.go @@ -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 }