gokrb5 icon indicating copy to clipboard operation
gokrb5 copied to clipboard

No way to change context flags for SPNEGO's AP REQ

Open Macmod opened this issue 10 months ago • 0 comments

SPNEGO's InitSecContext in spnego.go references NewNegTokenInitKRB5 from negotiationToken.go, which always generates a NegTokenInit from NewKRB5TokenAPREQ with ContextFlags gssapi.ContextFlagInteg and gssapi.ContextFlagConf.

I have an issue in which Active Directory doesn't provide replies to LDAP searches (they just timeout) after a successful bind with GSS-SPNEGO whenever these flags are set, but it works fine when they are not set. I'd like to turn off these flags but haven't found a way to do so within the library. Unless these ContextFlags are mandatory by some RFC shouldn't it be up to the implementor to decide which flags to include in the request?

Macmod avatar Apr 02 '24 00:04 Macmod