[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Supporting different LDAP version protocols?
- To: <OpenLDAP-software@OpenLDAP.org>
- Subject: RE: Supporting different LDAP version protocols?
- From: "David Parker" <david.parker@rocketsoftware.com>
- Date: Thu, 15 Jan 2004 12:01:41 -0500
- Content-class: urn:content-classes:message
- Thread-index: AcPbiH+CEZ3TloirSyiNtgFpUuHK9QAAJA5Q
- Thread-topic: Supporting different LDAP version protocols?
I believe the default for slapd is V3, but the default for libldap is V2. For the client, you can use ldap_set_option to set the protocol to V3.
- DAP
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Matt Harp
> Sent: Thursday, January 15, 2004 11:41 AM
> To: OpenLDAP-software@OpenLDAP.org
> Subject: Supporting different LDAP version protocols?
>
>
> Hey all,
>
> I have slapd 2.1.25 running locally on my WinXP box, and I've
> written this
> little dummy client to use the LDAP API calls to bind, and search.
>
> The problem I'm running into is that when I do an init call,
> it works but
> the protocol value on the returned LDAP* is 2. Then when I
> try to bind, I
> get a "Protocol error". If I change that value to 3, then
> binding works fine
> and I'm up and running.
>
> So, I really have two questions.
>
> 1. Why isn't the init call setting the protocol to 3, which is what my
> server is obviously expecting? Is it something wrong with my
> server setup,
> or is this always the default for the init? If it's the
> default, then is
> there an API call to ask a LDAP server what protocol it supports? Some
> clients I've tried let you specify the version when you setup
> the server
> connection, but others (such as Outlook) don't so they must be able to
> figure it out on thier own somehow (or else they just try both).
>
> 2. How do I setup my server to support version 2 binding? I
> found a post
> that mentioned putting "allow v2_bind" in the .conf file, but
> slapd tells me
> that "v2_bind" is not a recognized feature in "allow <features>".
>
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> mharp
>
>
>