You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2024. It is now read-only.
I think this may be a bug in the library.
https://github.com/mcavage/node-ldapjs/blob/540a3a1f5c2f23ade95142fa2f43fb87db585b48/lib/change.js#L87
_attr.addValue(val[k].toString());
converts buffers to strings which causes an issue when it is added as an attribute
https://github.com/mcavage/node-ldapjs/blob/540a3a1f5c2f23ade95142fa2f43fb87db585b48/lib/attribute.js#L71
if (Buffer.isBuffer(val)) will always be false
I added a check to ensure that it doesn't call .toString() if the value is a buffer
This question, although doesn't use ldapjs, has more details on the encoding issue:
http://stackoverflow.com/questions/19569986/node-js-uploading-output-of-imagemagick-to-aws-s3
See #346 as a possible solution.
The text was updated successfully, but these errors were encountered: