index-files-created-as-root
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Wed, 5 Oct 2022 12:38:13 +0000 (13:38 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Wed, 5 Oct 2022 12:38:13 +0000 (13:38 +0100)
commit0ca344df33903e8169941f399e7cc326d927b83b
tree7809a696e693b65cba6bfc4514c2666d1d96317d
parent7159c1c84fdb94f6d81040717da3f91a2a57fb71
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