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

Re: query timeout and proxytemplate



"Nathan Morrow" <nmorrow@spotswood.org> writes:

> Two questions for the group
>
> 1.
>
> I am running slapd as a ldap proxy which is working fine.  I have
> tried idetimeout and idle-timeout to shorten the query if the tcp
> connection isnât there for the proxy, but the connection still seems
> to hang indefinitely.  Again, it works fine when the master ldap
> server is there.

> overlay pcache
>
> proxyCache bdb 100000 1 1000 100
>
> proxyAttrset 0 proxyAddresses
>
> proxyTemplate (&(objectClass=)(proxyAddresses=)) 0 3600
>
> The query (that works when the master server is available) below,
> doesnât work when the same request is made after that and the server
> isnât there.  But that shouldnât matter if the cache were used.  Alas,
> no luck.
>
> ldapsearch -x -D 'CN=MTA,OU=Restricted,DC=fake,DC=comâ -b
> 'OU=Staff,DC=fake,DC=com' -l 5 -Z "(&
> (objectClass=person)(proxyAddresses=SMTP:user@fake.com))"
> proxyAddresses

In order to test the proxy caching function run your proxy slapd with
-d pcache.

-Dieter

-- 
Dieter KlÃnter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6