#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    2
    Rep Power
    0

    Question Distinguishing LDAP V2 and V3 - Help please!


    Hi there,

    how can I - by the means of C++ / Windows API / ... - determine the LDAP version of the server I'm connected to?

    I'm using
    ADsOpenObject and
    "PointerToInterface"->ExecuteSearch
    in order to search.

    Background problem:
    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

    Benedikt
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Location
    Stuttgart
    Posts
    50
    Rep Power
    11
    tell us what kind of server you're using and we tell you the LDAP - Version
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    2
    Rep Power
    0

    Unhappy


    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.

IMN logo majestic logo threadwatch logo seochat tools logo