shaozi / ldap-authentication

🔐🔐🔐 A simple Nodejs Async LDAP authentication library
BSD 2-Clause "Simplified" License
110 stars 28 forks source link

Added raw data to user #48

Closed christopherpickering closed 1 year ago

christopherpickering commented 1 year ago

Raw data is needed in order to access buffer objects (profile pics in my case).

Buffer data can now be accessed by user.raw.profilePhoto, etc, instead of user.profilePhoto.

Taking advantage of a few upstream features/ resolved issues:

https://github.com/ldapjs/node-ldapjs/pull/107 https://github.com/ldapjs/node-ldapjs/blob/2435d1cf9329348df7917b2acfaab107c3ccfef9/lib/messages/search_entry.js#L63 https://github.com/ldapjs/node-ldapjs/issues/290