go-ldap / ldap

Basic LDAP v3 functionality for the GO programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trailing nul character in AD errors

fcinqmars opened this issue · comments

Hi,

I noticed that when used with Active Directory, LDAP errors have a trailing nul character (0x00). Would it be possible to simply trim the nul character from retrieved LDAP errors ? I opened a PR adding the trim on the Err key.

More details and screenshot in the PR below.

PR here