Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugging unmarshal error #496

Open
tooptoop4 opened this issue Nov 29, 2022 · 1 comment
Open

debugging unmarshal error #496

tooptoop4 opened this issue Nov 29, 2022 · 1 comment

Comments

@tooptoop4
Copy link

tooptoop4 commented Nov 29, 2022

i am trying to use this lib to a host a httpserver on unix and let windows clients (AD) make curl calls to it with --negotiate -u :

SPNEGO error in unmarshaling SPNEGO token error unmarshalling KRB5Token OID: asn1: structure error: explicitly tagged member didn't match

b is [78 redactnumber redactnumber redactnumber redactnumber redactnumber redactnumber 0 1 0 0 0 redactnumber redactnumber 8 redactnumber 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0 redactnumber 74 0 0 0 15]

https://github.com/jcmturner/gokrb5/blob/v8.4.3/v8/spnego/krb5Token.go#L71

curl shows Authorization: Negotiate a_56_char_length_string

I think NTLMSSP is what is getting sent to the http server, is that not supported?

@tooptoop4
Copy link
Author

tooptoop4 commented Nov 30, 2022

with the https://github.com/jcmturner/gokrb5/blob/master/v8/examples/httpServer.go example getting:

* InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid
< Www-Authenticate: Negotiate oRQwEqADCgEBoQsGCSqGSIb3EgECAg==

i wonder if DisablePAFXFAST settings can be applied on service side? @jcmturner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant