Outside of extending PooledSearchEntryResolver, are there better options for fetching binary attributes during authN?
how does Ldaptive determine if an attribute is binary?
The best way currently would be to add a custom EntryHandler for the attribute.You can see an example of this here:There are also some extension points that would work, but this is the cleanest solution until the library is patched.
how does Ldaptive determine if an attribute is binary?It is declarative, so by default all values are UTF-8 encoded strings unless you say otherwise.That's a feature I'm reexamining for v2.
It could go away entirely and the library would leverage the LDIF definition of base64 encoding to determine whether a value is "binary".If you have an opinion or preference please let me know.
What's puzzling to me is that if I simply fetch a binary attribute, "jpegPhoto", without actually tagging or declaring it as binary and try to retrieve it normally as part of authentication, I can see that the attribute is marked as binary when I call isBinary(). Any thoughts on how this might be happening?
If you're using the JNDI provider, it makes some attributes binary by default.