[Date Prev][Date Next] [Chronological] [Thread] [Top]

Slapd should give up root permission after binding the socket (ITS#98)

Full_Name: Pat lashley
Version: 1.2.0
OS: FreeBSD 3.1R
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

Under the most common usage SLAPD has no reason to run as root except to bind
the privileged socket.  Once that has been done, it could easily irrevocably
up root permissions; thereby reducing the potential damage of any security
in the bulk of the code.

It would be very easy to add user and group commands to the slapd.conf file to
indicate that root privileges should be surrendered and the daemon should
to run as the specified user and group.  The default behavour if no user or
is specified should be to retain root privileges.  (I.e. Run as it does now.)
This provides complete backwards compatability.

Surrendering root privileges should not affect the use of ldbm databases at all
(assuming that the underlying files are readable by the new user/group.)

On systems using shadow passwords or similar schemes, it will probably prevent
passwd back-ends from retrieving the encrypted user password from the system.
(This may be construed as a feature, depending upon the site's intended usage
of the LDAP access to the passwd database.)

It will also interfere with shell back-ends which require root privileges to
operate properly.  On the other hand, it should improve the security of those
that may run as non-privileged users.