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

Re: API Libs and the v3 Protocol



You need to do something like:

int version = 3;
LDAP *ld = ldap_init( ldap_host, LDAP_PORT );
ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version);


On Mon, Sep 23, 2002 at 06:39:31PM +0100, 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
>  

-- 
Ian Logan
Information and Communication Technologies
New Mexico State University
Email: ian@nmsu.edu Phone: 505-646-6034 Fax: 505-646-4560