index-files-created-as-root
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sat, 12 Mar 2022 03:38:02 +0000 (03:38 +0000)
committerRyan Tandy <ryan@nardis.ca>
Sat, 12 Mar 2022 03:38:02 +0000 (03:38 +0000)
commit273574e73fa324b7c607b24fe8270f317cf392ea
treedcf34042757d8f904c18ed28ee8fa2c69586926d
parentf800d5a00d4176d518f47607bd41206de094343c
index-files-created-as-root

Document in the man page that slapindex should be run as the same user
as slapd, and print a warning if it's run as root (since Debian defaults
to running slapd as openldap).

Not suitable for upstream in this form.  This patch needs to be reworked
to check the BerkeleyDB database ownership and only warn if running as
root with a database that's not owned by root.

Upstream ITS #5356 filed requesting better handling of this.  Current
upstream discussion leans towards putting the check into the database
backend and aborting if slapd is run as a different user than the database
owner, which is an even better fix.

Gbp-Pq: Name index-files-created-as-root
doc/man/man8/slapindex.8
servers/slapd/slapindex.c