Actually, on further investigation, that doesn't appear to fully solve the
problem. openldap has /bin/false as its shell, so that is why no output
was being seen.
su -s /bin/sh openldap -c '/usr/sbin/slapcat -l /dev/null'
bdb_db_open: database "dc=we-be-smart,dc=org": unclean shutdown detected;
attempting recovery.
bdb_db_open: database "dc=we-be-smart,dc=org": recovery skipped in read-only
mode. Run manual recovery if errors are encountered.
If slapd is shutdown before running slapcat, the warning is not generated.
- Branden
On Fri, 8 Oct 2010, Anthony Milan wrote:
Branden,
You're right: run slapcat as the 'openldap' user fixed the warning messages.
In slapcat(8) man page, the limitations are :
For some backend types, your slapd(8) should not be running (at least,
not in read-write mode) when you do this to ensure consistency of the
database. It is always safe to run slapcat with the slapd-bdb(5),
slapd-hdb(5), and slapd-null(5) backends.
Do run slapcat as the owner of the bakends file is an other limitation?
Regards,
--
Anthony Milan
Centre Hospitalier de Saint-Brieuc
Direction du système d'information
22027 Saint-Brieuc Cedex 1
Tél : 02 96 01 78 39 (67839)
Fax : 02 96 01 75 57
--
To unsubscribe, send mail to [email protected].