Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161135 - Using slaptest in /etc/init.d/slapd to get more useful info on what goes wrong
Summary: Using slaptest in /etc/init.d/slapd to get more useful info on what goes wrong
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 14:59 UTC by Petteri Räty (RETIRED)
Modified: 2007-04-06 11:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-01-09 14:59:42 UTC
pena pam # /etc/init.d/slapd start
 * Caching service dependencies ...                                                                                                                                                                   [ ok ]
 * Starting ldap-server ...                                                                                                                                                                           [ !! ]
 * ERROR:  slapd failed to start

This by itself is not really that useful to diagnose what goes wrong. To help users from having gray hair we could run slaptest either in the beginning of start or when slapd fails to start:

pena pam # slaptest
/etc/openldap/slapd.conf: line 62: <rootpw> can only be set when rootdn is under suffix
slaptest: bad configuration file!
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2007-04-06 11:20:24 UTC
as slaptest would try to create the databases this isn't a good idea as you'd end up with a permission issue (slaptest being fine, slapd still breaking)
plus one would need some bash hackery to extract the used config(file|dir) from /etc/conf.d/slapd

Feel free to contribute, would be fine with me :)

For now marking it LATER.