[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: API Libs and the v3 Protocol



Use the ldap_set_option() api call with LDAP_OPT_PROTOCOL_VERSION.

It's documented here:

http://www.openldap.org/devel/cvsweb.cgi/~checkout~/doc/drafts/draft-ietf-ldapex
t-ldap-c-api-xx.txt

For example:

ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, LDAP_VERSION_3);


        - VAB

On Mon, 23 Sep 2002, Wm. G. Urquhart wrote:

> Hi,
> 
> According to the documentation the libs provided for the C API support
> both the v2 and v3 protocols, with the default of v2. I'm trying to use
> ldap_bind on a v3 only installation so I need to be v3 'aware', how do I
> set this in my application?
> 
> 
> I've searched and search through the docs but can't find any references to
> it, could someone please shed some light on this for me please. I'd really
> appreciate it.
> 
> --
> Regards,
> 
> 
> Wm. G. Urquhart