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

slapd segfault when using pcache



Hi,
I am trying to use slapd as a proxycache LDAP daemon for another LDAP server.

(I was following the manual here:
http://www.openldap.org/doc/admin23/proxycache.html
but this refers to proxycache, which I think it is now replaced by pcache? Should the manual be updated?)


This is my slapd.conf:

include         /usr/local/etc/openldap/schema/core.schema

pidfile         /var/ldap/slapd.pid
argsfile        /var/ldap/slapd.args

database        ldap
suffix          "o=example,c=COM"
rootdn          "uid=root,o=example,c=COM"
uri             "ldap://ldap1.example.com ldap://ldap2.example.com";

overlay pcache
proxycache      ldbm 10000 1 1000 3600

directory       /var/ldap/openldap-data
cachesize 100

index   objectClass     eq
index   uid     eq
index   uidNumber       eq
index   gidNumber       eq


When I run slapd with -d 1 I get this:
...
slapd startup: initiated.
backend_startup_one: starting "cn=config"
config_back_db_open
config_build_entry: "cn=config"
config_build_entry: "cn=include{0}"
config_build_entry: "cn=schema"
config_build_entry: "cn={0}core"
config_build_entry: "olcDatabase={-1}frontend"
config_build_entry: "olcDatabase={0}config"
config_build_entry: "olcDatabase={1}ldap"
config_build_entry: "olcOverlay={0}pcache"
backend_startup_one: starting "o=example,c=COM"
ldap_back_db_open: URI=ldap://ldap1.example.com ldap://ldap2.example.com
backend_startup_one: starting "o=example,c=COM"
ldbm_back_db_open: unclean shutdown detected; database may be inconsistent!
slapd starting
../rc.d/rc.slapd: line 15: 22613 Segmentation fault $SLAPD -u $USER -h "$LDAPSOCKET" -d 1



If I add this to slapd.conf:

proxyattrset    0 pager


slapd no longer crashes, but does not start. I get this now:
...
bdb_back_initialize: initialize BDB backend
bdb_back_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
hdb_back_initialize: initialize HDB backend
hdb_back_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
dnPrettyNormal: <o=example,c=COM>
<<< dnPrettyNormal: <o=example,c=COM>, <o=example,c=com>
dnPrettyNormal: <uid=root,o=example,c=COM>
<<< dnPrettyNormal: <uid=root,o=example,c=COM>, <uid=root,o=example,c=com>
ldap_url_parse_ext(ldap://ldap2.example.com)
ldap_url_parse_ext(ldap://ldap1.example.com)
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.

Any ideas on what's wrong?
Thanks in advance,
  Fabio