[Date Prev][Date Next]
Re: referral + rebind + search + scope onelevel/ base
The server needs to set the scope in the referral explicitly, otherwise a
search scope of "base" is assumed. That's my understanding, anyway.
>From: Nicolay Mausz <email@example.com>
>Subject: referral + rebind + search + scope onelevel/ base
>Date: Sat, 20 Jul 2002 02:11:28 +0200
>I set up an OpenLDAP server with a referral to another LDAP server. The
>second one needs authentification so anonymous bind is not possible
>while chasing the referral.
>I register a rebind callback procedure which works great: In my rebind
>function I do the bind to the second server.
>My problem here: if I do a search with scope subtree everything works ok
>(because it makes no big difference). But when I do a search with scope
>"onelevel" or "base" (base dn is under the second server) I always get
>back the base entry of the second server. It seems that with the second
>bind in my rebind-fuction it forgets the original search base.
>I wrote a workaround for myself which is not very nice : I start a new
>search in my rebind function.
>The OpenLDAP client seems to be buggy in this case. This feature works
>with anonymous bind without any problems.
>My testing environment: OpenLDAP-2.1.1 Beta client and local OpenLDAP
>2.0.23 server. Second LDAP: Active Directory. I tested it with the
>"ltest" program under libraries/libldap. Protocol version: 3
>Any help would be great.
>Thanks in advance!
Luke Howard | lukehoward.com
PADL Software | www.padl.com