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

Fix DIGEST-MD5 auth #545

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Fix DIGEST-MD5 auth #545

merged 4 commits into from
Feb 19, 2025

Conversation

andy-igoshin
Copy link
Contributor

@andy-igoshin andy-igoshin commented Jan 9, 2025

Some LDAP servers in the process of performing DIGEST-MD5 authentication respond with an additional saslBindInProgress (14) even if qop=auth is matched. Because of this, MD5Bind in go-ldap terminates unsuccessfully.

OpenLDAP ldapsearch and perl Net::LDAP handle this situation successfully.

This patch fixes this problem in go-ldap.

@andy-igoshin andy-igoshin changed the title condition is always true Fix DIGEST-MD5 auth Jan 9, 2025
@andy-igoshin
Copy link
Contributor Author

andy-igoshin commented Jan 9, 2025

The saslBindInProgress (14) description does not specify that the additional saslBindInProgress (14) should only be used in conjunction with qop=auth-int

Copy link
Member

@cpuschma cpuschma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your PR, @andy-igoshin ! May you please take a look at my comment?

@cpuschma cpuschma merged commit 32469eb into go-ldap:master Feb 19, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants