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

Re: Referral chasing mistery



Hi Konstantin

On Thu, Mar 22, 2001 at 05:29:41PM +0000, Konstantin Chuguev wrote:
> Something seems wrong in chasing referrals in OpenLDAP's libldap.

Don't think so, see below

> dn: dc=hil, dc=no
> objectClass: referral
> ref: ldap://domino2.hil.no/?
[...]
> Fine again. Let's finally ask the the client to chase the referral from
> the first server:
> # ldapsearch -H ldap://ldap.uninett.no:389 -s base -b dc=hil,dc=no -x -C
[...]
> result: 32 No such object
> 
> # numResponses: 1
> 
> This is completely beyond me. According to RFC2255, the question mark in
> the reference URL is harmless in this case.
> Any ideas?

What happens is that when you follow a referral with no base, you use
the same base as the original search. So in effect it tries to search
in the hil server with base dc=hil,c=no while the hil server has empty
base. hil should really change their base.

Note however that if you for instance do subtree search at dc=no, you
will get a search continutation reference, and in that case the empty
base in the reference is used, so you do indeed search in the hil
server then.

Stig