LDAP node return custom binary fields

The idea is:

Add an option on the LDAP node in the Search operation to specify fields to be treated as binary data.

My use case:

I query the jpegPhoto attribute of my LDAP users to get their avatars.
This return a blob of bad encoded binary data in a string (lot of �).
I would like to get this binary data, convert it to a file and return it on a Webhook.

I think it would be beneficial to add this because:

This will increase the capability of the LDAP node.

Any resources to support this?

The LDAP node already supports binary, but it’s a constant limited to the objectGUID and objectSid attribute.

Are you willing to work on this?

I’m willing to work on a PR to add this new options.

I‘m also struggling with this and would appreciate a change in the ldap node.

Adding an option to treat any field as binary data would be the best and correct solution to the problem as this would work for any variations in the naming of the attribute - but also a bit more complex.

When thinking about binaries in ldap the most common - if not the only one missing - would be profile pictures which are usually stored in the attribute thumbnailPhoto or in this case jpegPhoto.

So wouldn’t it be the easiest „fix“ to just add those two attributes to the constant that declares the binary ad attributes?