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

openldap seg fault on ldapadd; no default value for slapd.conf's directory attribute (ITS#393)



Full_Name: Joe Sabu T Job
Version: 1.2.7
OS: Sol 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (216.116.135.157)


As described in the QuickStart guide, I built openldap binaries, created a
sample slapd.conf file and tried adding an entry by ldapadd. slapd sis a seg
fault. After countless hours of hair splitting, I found out that I need to
EXPLICITLY specify the configuration attribute "directory" in slapd.conf.

I'm  using Sleepycat DB 2.7.7

To recreate this bug, use the following slapd.conf

database ldbm
suffix "dc=foo, dc=com"
rootdn "cn=Manager, dc=foo, dc=com"
rootpw secret

and a data file data.ldif:

dn: dc=foo, dc=com
dc: foo
o: My Company

dn: cn=Manager, dc=foo, dc=com
cn: Manager
sn: Manager

Now try ldapadd -D "cn=Manager, dc=foo, dc=com" -W <data.ldif

slapd will die with "next_id_read: could not open "Segmentation Fault (core
dumped)"

Thanks
Joe Sabu