October 13th, 2004, 05:00 AM
Distinguishing LDAP V2 and V3 - Help please!
how can I - by the means of C++ / Windows API / ... - determine the LDAP version of the server I'm connected to?
in order to search.
As search result I get displayname as binary blob or ADSTYPE_PROV_SPECIFIC. In case of V2 it contains a IA5 string. In case of V3 a UTF-8 string is in there.
I have to know which conversion routine to call.
Thanks in advance
October 14th, 2004, 08:57 AM
tell us what kind of server you're using and we tell you the LDAP - Version
October 15th, 2004, 03:18 AM
I'm afraid this is no static problem.
Our telephony software offers the possibility of simultanous search for contact (i.e. person) data in several directories.
For this, the user is able to configure the DNS names / IP addresses and Ports of the LDAP servers to use.
You see the problem?
Currently we definitely know that the users of our software use openLdap V2, openLdap V3, Exchange Server 5.5, and Active Directory (ES 2000, ES 2003).
But the lower layer of our software (yet :-) ) doesn't know which LDAP version it is connected to because ADsOpenObject doesn't return any information about it.