[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_search for binary data??
At 05:30 PM 9/22/00 -0500, Burkule, Sanju non Unisys wrote:
>Hi,
>Could anybody help me on how to conduct a ldap_search using binary data?
>I have objectGUID as one of the mandatory attributes of all objects in ldap
>directory implemented in Windows 2000. And objectGUID is a OctetString.
>Since objectGUID is unique, and remains the same even when the object is
>moved anywhere in the directory tree, I would like to search for such
>objects using the objectGUID.
>My question is :
>How do I create a filter string for such cases?
You construct an string representation (RFC 2253) of the LDAPv3
filter by hex escaping the value, for example:
(objectGUID=\c3\00\20\fd)
will match the 32-bit value 0xc30020fd.
>Do I have to convert objectGUID to string when I do this?
with a small piece of code.
>Do I have to specify double quotes for the values?
No.
>I am using LDAP SDK and Windows 2000 server.
>-Thanks a lot. Any help will be appreciated.
>-Sanju