Skip to content

expose ldap error reason somehow #40

@celesteking

Description

@celesteking

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions