index-files-created-as-root
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sat, 15 May 2021 23:03:34 +0000 (00:03 +0100)
committerRyan Tandy <ryan@nardis.ca>
Sat, 15 May 2021 23:03:34 +0000 (00:03 +0100)
commitcb70ea434d30e8bcbc32ee2083b5454f7f53f77f
treedc18d18d50f50429497f8c83d36ad7277f880416
parent39ab5e484508a988771ebf997a570929ffd7f96c
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