index-files-created-as-root
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)
committerSergio Durigan Junior <sergiodj@debian.org>
Sun, 18 Sep 2022 22:29:46 +0000 (23:29 +0100)
commit15de02670bbcd202eb6c16f0c27618d2fdd3deb9
tree662acd9a22f05bf2c2354f2fd7e69ed45273b74b
parent9fc064142f784b542f7689b8ff67b8ad124e95ff
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