I'd say that slaptest should be able to test the configuration prior to
putting data in the directory.
If you can find a config that seg faults with a simple one line like
# slaptest -f /etc/openldap/slapd.conf
you should post it to the ITS -- even if it's a bogus config, it should
exit gracefully.
Now, in situations where it makes no sense, then it might be considered a
requirement to exist...but there still should be a graceful exit, not a
seg fault.
On Thu, 10 Jan 2008, Josh Miller wrote:
Is it a requirement for the id2entry.bdb file to exist prior to any slap*
tools successfully running or would this be a bug?
OpenLDAP 2.4.7
Berkley-DB 4.6
CentOS 5
I get a Segmentation Fault every time I run slaptest or slapindex if I have
not yet started slapd (to prompt initial creation of id2entry.bdb in my data
directory).
Example:
# /etc/init.d/ldap stop
# rm -rf /var/lib/openldap-data/*
# rm -rf /etc/openldap/slapd.d && mkdir /etc/openldap/slapd.d
...(modify slapd.conf)...
# slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
Seg Faults every time. I even get a seg fault if I simply run the following:
# slaptest -f /etc/openldap/slapd.conf
(Possibly useless gdb output http://ditree.com/work/gdb.ol2.4.7.out )
TIA,
--
Joshua M. Miller - RHCE,VCP