[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
proxy-cache
- To: OpenLDAP Software List <openldap-software@OpenLDAP.org>
- Subject: proxy-cache
- From: Remco Post <r.post@sara.nl>
- Date: Tue, 21 Sep 2004 11:11:58 +0200
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031115 Debian/1.5-3.he-1
Hi all,
so after having stepped on enough toes for one day, now a true openldap
question.
I have compiled openldap-2.2.17 and configured it. The sql database is
the same I've been using for some time now. So I don't expect any
problems in that part. Now, I've tried to add a proxy-cache to help
speed things up a bit (10 entries/sec is a bit to slow). I have the
following rules in my slapd.conf:
--8<--
# the real thing
#
database sql
suffix "o=sara,c=NL"
rootdn "cn=root,o=sara,c=NL"
rootpw zeergeheim123
dbname PgSQL
dbuser ldap
dbpasswd ldap
upper_func "upper"
strcast_func "text"
concat_pattern "?||?"
has_ldapinfo_dn_ru no
# subtree_cond
# oc_query
# at_query
# insentry_query
# delentry_query
#
# a proxy cache for our database
#
database meta
rewriteEngine on
rewriteContext cacheResult
rewriteRule "(.*)dc=sara,dc=NL" "%1o=sara,c=NL" ":"
rewriteContext cacheBase
rewriteRule "(.*)dc=sara,dc=NL" "%1o=sara,c=NL" ":"
rewriteContext cacheReturn
rewriteRule "(.*)o=sara,c=NL" "%1dc=sara,dc=NL" ":"
suffix "dc=sara,dc=NL"
uri "ldap://dromedaris.sara.nl/o=sara,c=NL"
overlay proxycache
proxycache ldbm 100000 1 1000 100
proxyAttrset 0 uid uidNumber objectClass
proxyTemplate (uid=?) 0 3600
proxyTemplate (objectClass=?) 0 3600
proxyTemplate (uidNumber=?) 0 3600
directory /usr/local/etc/openldap/db
--8<--
statring the slapd using `./slapd -h 'ldap:/// ldaps:///' -d 1` to see
what is going on yield a lot of lines printing '
backend_startup: starting "dc=sara,dc=NL"' ginving me the impression
that something is looping.
I've tries setting the uri rule for my meta-db to
"ldap://dromedaris.sara.nl/dc=sara,dc=NL" as is done in the sample code,
but that has the same result.
any hints on the use of the proxycache would be appreciated, nieter the
IBM whitepaper nor the on-line documentation give me any hints on what
is going wrong....
--
Met vriendelijke groeten,
Remco Post
SARA - Reken- en Netwerkdiensten http://www.sara.nl
High Performance Computing Tel. +31 20 592 3000 Fax. +31 20 668 3167
"I really didn't foresee the Internet. But then, neither did the
computer industry. Not that that tells us very much of course - the
computer industry didn't even foresee that the century was going to
end." -- Douglas Adams