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....