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

Connection taking long for due to timing out krb5 cred request even when ntlm is to be used #228

Open
amandeepgautam opened this issue Jul 12, 2022 · 0 comments

Comments

@amandeepgautam
Copy link

When we try to acquire creds, we ignore the recommendation from the server and try to use SPNEGO. Referring to a TODO here: https://github.com/sahlberg/libsmb2/blob/master/lib/krb5-wrapper.c#L215

The problem which we are facing is that some queries for krb5 cred acquire are taking more than 2 mins and then timing out. This has happened more than a few times.

We tried a fix where we moved the code: https://github.com/sahlberg/libsmb2/blob/master/lib/krb5-wrapper.c#L269-L282 to https://github.com/sahlberg/libsmb2/blob/master/lib/krb5-wrapper.c#L215. However, we lost the SPNEGO headers in this patch and authentication started failing with Netapp. For some reason, Netapp likes the SPNEGO headers in the packets sent over the wire.

Do you have any other suggestion to better fix this TODO? If the patch does not require in-depth protocol knowledge, would be happy to submit a PR for this.

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