Run slapd as a non-privileged user

ok ajacoutot@
This commit is contained in:
pea 2011-01-13 15:41:40 +00:00
parent 866e94c5b5
commit 9bbf50ab92
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.99 2011/01/07 12:24:32 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.100 2011/01/13 15:41:40 pea Exp $
COMMENT-main= Open source LDAP software (client)
COMMENT-server= Open source LDAP software (server)
@ -7,7 +7,7 @@ DISTNAME= openldap-2.4.23
PKGNAME-main= ${DISTNAME:S/-/-client-/}
PKGNAME-server= ${DISTNAME:S/-/-server-/}
REVISION-server= 0
REVISION-server= 1
SHARED_LIBS += lber 10.0 # .7.6
SHARED_LIBS += ldap 10.0 # .7.6

View File

@ -1,8 +1,9 @@
#!/bin/sh
#
# $OpenBSD: slapd.rc,v 1.2 2011/01/07 12:24:33 ajacoutot Exp $
# $OpenBSD: slapd.rc,v 1.3 2011/01/13 15:41:40 pea Exp $
daemon="${TRUEPREFIX}/libexec/slapd"
daemon_flags="-u _openldap"
. /etc/rc.d/rc.subr