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

update go-ldap, improve errors #1338

Merged
merged 3 commits into from
Nov 20, 2018
Merged

Conversation

srenatus
Copy link
Contributor

These are the changes between v2.3.0 (what we had used) and v2.5.1, and the more detailed error reporting for connection problems seems worth it.

For example, where now we'd get

ldap: initial bind for user "" failed: LDAP Result Code 200 "": ldap: channel closed

we then would get something like either

ldap: failed to bind as dn "cn=jane,ou=People,dc=example,dc=org": LDAP Result Code 200 "Network Error": ldap: connection closed

or

initial bind for user "" failed: unable to read LDAP response packet: unexpected EOF

...which is a bit of an improvement.

As a drive-by, I've fixed an error typo, and differentiated anonymous/non-anonymous binds in the initial-bind-error.

Signed-off-by: Stephan Renatus <srenatus@chef.io>
Signed-off-by: Stephan Renatus <srenatus@chef.io>
Signed-off-by: Stephan Renatus <srenatus@chef.io>
Copy link
Contributor

@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

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

lgtm, thanks :)

@srenatus srenatus merged commit 4738070 into dexidp:master Nov 20, 2018
@srenatus srenatus deleted the sr/update-go-ldap branch November 20, 2018 07:02
mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
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