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

Re: slapd defaults to LDAPv3 but libldap defaults to LDAPv2 (ITS#1971)



At 05:28 PM 2002-07-19, andrew.findlay@skills-1st.co.uk wrote:
>Full_Name: Andrew Findlay
>Version: 2.1.3
>OS: Linux Redhat 7.3
>URL: 
>Submission from: (NULL) (217.206.98.194)
>
>
>The default setting for slapd is to accept only LDAP version 3.

Yes, you can enable LDAPv2(ish) support if you desire.  I say
"ish" as LDAPv2 is not implemented consistently.

>However, the default for clients built with libldap is to request LDAP version
>2.

Yes, that's per latest (expired) IETF LDAPext LDAP C API specs.

>This leads to the error message:
>     ldap_bind: Protocol error (2)
>          additional info: requested protocol version not allowed

Yes.

>The command-line tools are OK because they explicitly set the version, and have
>their own default set to v3.

Per the specs, that's what they need to do if they want LDAPv3.

>I suggest making ldap_int_initialize_global_options in libraries/libldap/init.c
>set LDAP_VERSION3 as the default.

That would lead to interoperability problems with clients
specifically designed to use LDAPv2.