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

Re: Bug in pcache.c (ITS#4432)



Pierangelo Masarati wrote:
> Since the pcache overlay routinely passes tests, it would be interesting to see
> your slapd.conf, to determine if the issue you're reporting is caused by a
> misconfiguration.
> 
> p.
> 
Consider the issue closed, i moved the proxycache config part to the end 
of the slapd.conf, and slapd started nicely.
I'll attach the config file anyways, maybe you see something that might 
have caused it. Prior to the version below the proxycache config was at 
the indicated part of the file.

thanks and have a nice day!
Frederik

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.6 2003/02/26 
15:17:50 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include     /opt/OpenLDAP2/etc/openldap/schema/core.schema
include     /opt/OpenLDAP2/etc/openldap/schema/cosine.schema
include     /opt/OpenLDAP2/etc/openldap/schema/inetorgperson.schema
include     /opt/OpenLDAP2/etc/openldap/schema/nis.schema
include     /opt/OpenLDAP2/etc/openldap/schema/email.schema
include     /opt/OpenLDAP2/etc/openldap/schema/um50-compatibility.schema
include     /opt/OpenLDAP2/etc/openldap/schema/weblicon.schema
include     /opt/OpenLDAP2/etc/openldap/schema/midrayrbac.schema


# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
# referral   ldap://anti1.dnsg.net

pidfile     /opt/OpenLDAP2/var/run/slapd.pid
argsfile    /opt/OpenLDAP2/var/run/slapd.args

loglevel    -1

# Load dynamic backend modules:
# modulepath    /opt/OpenLDAP2/libexec/openldap
# moduleload    back_bdb.la
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

allow bind_v2

# syncrepl updatedn
access to *
         by * auth
         by * read
         by * write
#       by dn.exact="cn=syncrepl1,o=midray,c=com" write

#######################################################################
# ldbm database definitions
#######################################################################

database    bdb
suffix      "o=midray,c=com"
rootdn      "xxx"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw      xxx
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory  /opt/OpenLDAP2/var/openldap-data
# Indices to maintain
index   objectClass eq
index   co eq
index   uid sub,eq
index   mail sub,eq
index   cn sub,eq
index   memberof eq
index   entryUUID eq
index   entryCSN eq

############################
proxycache config stood here
############################

# Specify that on-disk database contents should not be immediately 
synchronized with in memory changes
# Caution! may lead to dataloss, was used for LDIF reimport
# dbnosync

# frequency for checkpointing <kbyte> <min>
checkpoint  0 60

# neuer syncrepl Teil
# http://www.openldap.org/doc/admin23/syncrepl.html
# http://www.ietf.org/internet-drafts/draft-zeilenga-ldup-sync-06.txt
# http://www.openldap.org/faq/data/cache/1117.html

# fuer provider ldap/slapd
#overlay syncprov
#syncprov-checkpoint 100 10
#syncprov-sessionlog 100

# fuer consumer ldap/slurpd
# http://www.openldap.org/doc/admin23/slapdconfig.html#syncrepl
# http://www.openldap.org/faq/data/cache/1118.html
#syncrepl rid=2
#       provider=ldap://anti1.dnsg.net:389
#       #type=refreshOnly
#       #interval=00:00:00:05 # d,h,m,s
#       type=refreshAndPersist
#       retry=5,+ # retry infinitely every 5 seconds
#       searchbase="o=midray,c=com"
#       filter="(objectClass=*)"
#       scope=sub
#       attrs="*"
#       schemachecking=off
#       #updatedn="xxx"
#       updatedn="cn=syncrepl2,o=midray,c=com"
#       binddn="xxx"
#       bindmethod=simple
#       credentials=xxx
#       updateref ldap://anti1.dnsg.net

# sizelimit for search operations (default 500)
sizelimit 2000

### proxycache config
# http://www.openldap.org/doc/admin23/proxycache.html
overlay pcache

# proxyCache <database> <cache_maxentries> <number_of_attributesets> 
<entrylimit_per_query> <queryttl_check>
proxycache    bdb 100000 1 1000 30

# home.debitel.net
proxyAttrset  0 uid mail sn cn userPassword
proxyTemplate (*) 0 60