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

expose ldap error reason somehow #40

Open
celesteking opened this issue Aug 14, 2016 · 0 comments
Open

expose ldap error reason somehow #40

celesteking opened this issue Aug 14, 2016 · 0 comments

Comments

@celesteking
Copy link
Contributor

Hi there. This is a complex topic, but right now what's needed is more info from underlying layer.

Take for ex.,

> begin; LDAP::SSLConn.new(host, port, true) ; rescue => e ; e ; end
=> #<LDAP::ResultError: Connect error>

No way of knowing what caused it. You can't access errno because you've got no LDAP::Conn object returned. Chicken and egg situation, basically.

In this particular case it was SSL verification that failed (hostname vs cert CN mismatch). There could be SASL failure later on, which I guess isn't logged properly either.

Thanks.

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