Re: Detect attribute value type?

"Matthew M. DeLoera" <[email protected]> Tue, 01 Sep 2009 12:12:52 -0400
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Rich,

Ah, thanks. I was just assuming that the protocol included that kind of 
metadata, and I didn't bother to dig further.

- Matthew


Rich Megginson wrote:
> Matthew M. DeLoera wrote:
>> Is there a way to detect whether an attribute value is binary versus 
>> string, or must I expect a particular attribute value to be one or 
>> the other?
>
> The only way to be sure is to query the schema in your directory 
> server, to see what syntax the attribute uses.
>
>>
>> It would be handy to be able to dynamically branch between 
>> ldap_get_values() and ldap_get_values_len().
>>
>> This isn't an urgent question, but would be helpful.
>>
>> Thanks!
>> - Matthew
>>
> _______________________________________________
> dev-tech-ldap mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-ldap