[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Info using libldap
At 12:38 PM 4/23/2003, Stefano Semeria wrote:
>Sorry for submitting such a stupid question but I'm really having heavy trouble
>binding with ldap_bind().
>If I 'd like to connect to a server with anonimous binding, do I have to pass empty strings
>with ldap_simple_bind()? I'm trying to connect to my own server on 127.0.0.1 but resulting in
>Protocol Error.
>Can someone guess what's going on?
The API defaults to version 2 (per the latest (expired)
Internet Draft technical specification). slapd(8), by
default, doesn't accept a version 2 Bind request. You
should set the API version to LDAP_VERSION3 using
ldap_set_option(). For examples, see client/tools
code.
Kurt