go-ldap / ldap

Basic LDAP v3 functionality for the GO programming language.
Other
2.23k stars 352 forks source link

Add support for Go 1.13's errors.Is/As functions #461

Closed zmb3 closed 1 year ago

zmb3 commented 1 year ago

ldap.Error wraps an underlying error, but doesn't interoperate with errors.Is or errors.As. This change makes it easier to detect things like an LDAP error caused due to a network timeout.