From 9bbf50ab928d5c9423697e48160b76cfb623f554 Mon Sep 17 00:00:00 2001 From: pea Date: Thu, 13 Jan 2011 15:41:40 +0000 Subject: [PATCH] Run slapd as a non-privileged user ok ajacoutot@ --- databases/openldap/Makefile | 4 ++-- databases/openldap/pkg/slapd.rc | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/databases/openldap/Makefile b/databases/openldap/Makefile index 2bc2b9e9c3d..932c339abc9 100644 --- a/databases/openldap/Makefile +++ b/databases/openldap/Makefile @@ -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 diff --git a/databases/openldap/pkg/slapd.rc b/databases/openldap/pkg/slapd.rc index 2053a149495..257652163d1 100644 --- a/databases/openldap/pkg/slapd.rc +++ b/databases/openldap/pkg/slapd.rc @@ -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