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

The token supplied to the function is invalid #31

Open
jg-son opened this issue Dec 27, 2021 · 1 comment
Open

The token supplied to the function is invalid #31

jg-son opened this issue Dec 27, 2021 · 1 comment

Comments

@jg-son
Copy link

jg-son commented Dec 27, 2021

Hi,

I'm getting this error
pywintypes.error: (-2146893048, 'InitializeSecurityContext', 'The token supplied to the function is invalid')
The server is an apache httpd with mod_auth_kerb running on Ubuntu 20.04 and with a keytab from our AD. It's on the secondary authentication it fails, when validating WWW-Authenticate.

It's strange because the same web server works with curl+sspi and also with any web browser.
I have also tried the same keytab with a Flask-GSSAPI server and then requests-negotiate-sspi succeeds.

Any advice is much appreciated
Best Regards

@michael-o
Copy link
Contributor

mod_auth_kerb is dead, dude. Move on. Use mod_gssapi, this perfectly works with this library.

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

2 participants