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

(ITS#3461) slaptest fails if db needs creation



Full_Name: Aaron Richton
Version: 2.3.0alpha
OS: Solaris 9
URL: 
Submission from: (NULL) (165.230.41.99)


# rm /var/openldap-data/*/*db* /var/openldap-logs/*/log*
# slaptest -d -1
[...]
backend_startup: bi_db_open failed! (2)
slap_startup failed
# /etc/init.d/slapd start
# /etc/init.d/slapd stop
# slaptest
config file testing succeeded

with no editing of slapd.conf. The totally empty database directory causes
slaptest to fail despite valid config file. I'd rather it only checked config
file, or at least had a flag to succeed despite database state, so usage could
be test first, run later.