ldap_get_values() called on binary data - does this return an error, or garbage data?
Graham Leggett <[email protected]> Wed, 3 Apr 2024 10:55:26 +0100
| Newsgroups | gmane.network.openldap.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, Looking back in time to the definitions of ldap_get_values() and = ldap_get_values_len(), we are told that "If the attribute values are = binary in nature, and thus not suitable to be returned as an array of = char *'s, the ldap_get_values_len() routine can be used instead." This has been historically vague - first off, what happens if an attempt = is made to call ldap_get_values() on binary data, do you get an error, = or garbage data? The source isn't giving me a clear answer. Second question is how do you know which of ldap_get_values() or = ldap_get_values_len() to call? Obviously you can manually know this, but = I'm interested in automated behaviour. What is the canonical way to = discover that if you queried a jpegPhoto (for example) that the result = would be binary? To be clear, the end goal it to patch the following documentation to = make this clear: = https://www.openldap.org/software/man.cgi?query=3Dldap_get_values&apropos=3D= 0&sektion=3D3&manpath=3DOpenLDAP+2.4-Release&arch=3Ddefault&format=3Dhtml Regards, Graham --