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

Re: (ITS#4427) ldapsearch hangs on slapd (proxycache) with no URI



> Full_Name: Ashish Gawarikar
> Version: 2.3.20
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (63.211.143.38)
>
>
> I have configured the slapd to be proxy cache. For proxy cache the "uri"
> is not
> mandatory, and the slapd-proxy-cache can be started without the uri
> defination
> in the slapd.conf
>
> Do a ldapsearch on the proxy-cache slapd server, and it will hang.
>
> It should either be:
>
> 1. Not start slapd at all
> 2. Or. return ldapsearch by either saying the ldap server is down, or not
> available and exit.

proxycache is an overlay, so it is supposed to have as little knowledge as
possible of the underlying database.  It can be used with any database,
although it mostly makes sense with back-ldap, back-meta, back-sql and so.
 The problem here is in back-ldap.  Recent evolutions of that database
required it to be allowed to start with an empty URI field, as under
special circumstances it may be generated from the request's data
(essentially in slapo-chain).  It appears that an empty URI means
"ldap://localhost/"; which may not be what you expect.  In any case, if
your proxy backend needs an URI to work correctly, you should first blame
yourself for not providing one...

Thanks for the report, p.



Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------