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

Re: ldap_simple_bind_s

At 08:36 AM 2002-07-05, Estrade Matthieu wrote:
>i am using openLdap 2.1.2
>i am using the ldap_simple_bind_dn() function, and it's not working
>the error is the protocol requested is not allowed.

Because the server is not configured to support LDAPv2.

>if i directly do a ldap_search() its working and the slapd answer me

Because such a request is considered to be an LDAPv3 request.
(LDAPv2 clients should always bind first).

>any ideas..?

Use LDAPv3.  See ldap_set_option(3).