Re: Detect attribute value type?

Rich Megginson <[email protected]> Tue, 01 Sep 2009 09:58:09 -0600
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
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
>