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
--On Friday, February 02, 2007 12:59 PM +0100 Fabio Pedretti fabio.pedretti@ing.unibs.it wrote:
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?)
Any ideas on what's wrong?
Why are you using LDBM?
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
Fabio Pedretti wrote:
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?)
Read the slapo-pcache(5) manpage instead.
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
Never use ldbm.
Hi, thanks for your suggestions. I changed ldbm to bdb, but I get again the same problems. I forget to say that I am using openldap 2.3.33 compiled from source on a Slackware 10.2.
Is there something wrong in my configuration? Any other hints?
Thanks, Fabio
Citando Howard Chu hyc@symas.com:
Fabio Pedretti wrote:
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?)
Read the slapo-pcache(5) manpage instead.
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
Never use ldbm.
I found myself the problem: if I omit: include /usr/local/etc/openldap/schema/core.schema then slapd will not start.
Also, when there are no proxyattrset defined, slapd get a Segmentation fault.
Citando Fabio Pedretti fabio.pedretti@ing.unibs.it:
Hi, thanks for your suggestions. I changed ldbm to bdb, but I get again the same problems. I forget to say that I am using openldap 2.3.33 compiled from source on a Slackware 10.2.
Is there something wrong in my configuration? Any other hints?
Thanks, Fabio
Citando Howard Chu hyc@symas.com:
Fabio Pedretti wrote:
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?)
Read the slapo-pcache(5) manpage instead.
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
Never use ldbm.
Sorry, cut & paste error: slapd will not start if I don't include: cosine.schema , not core.schema
I found myself the problem: if I omit: include /usr/local/etc/openldap/schema/core.schema then slapd will not start.
Also, when there are no proxyattrset defined, slapd get a Segmentation fault.
Citando Fabio Pedretti fabio.pedretti@ing.unibs.it:
Hi, thanks for your suggestions. I changed ldbm to bdb, but I get again the same problems. I forget to say that I am using openldap 2.3.33 compiled from source on a Slackware 10.2.
Is there something wrong in my configuration? Any other hints?
Thanks, Fabio
Citando Howard Chu hyc@symas.com:
Fabio Pedretti wrote:
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?)
Read the slapo-pcache(5) manpage instead.
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
Never use ldbm.
-- ing. Pedretti Fabio Tel: 030 371 5431 Cell: 329 101 9493 e-mail: fabio.pedretti@ing.unibs.it
Fabio Pedretti wrote:
I found myself the problem: if I omit: include /usr/local/etc/openldap/schema/core.schema then slapd will not start.
That's not surprising.
Also, when there are no proxyattrset defined, slapd get a Segmentation fault.
Note that the manpage states that you must define as many proxyattrsets as your <numattrsets> parameter. In this case, the pcache startup code will return an error, which causes slapd to fail to start. This is also expected.
Citando Fabio Pedretti fabio.pedretti@ing.unibs.it:
Hi, thanks for your suggestions. I changed ldbm to bdb, but I get again the same problems. I forget to say that I am using openldap 2.3.33 compiled from source on a Slackware 10.2.
Is there something wrong in my configuration? Any other hints?
Thanks, Fabio
Citando Howard Chu hyc@symas.com:
Fabio Pedretti wrote:
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?)
Read the slapo-pcache(5) manpage instead.
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
Never use ldbm.
openldap-software@openldap.org