ports/127822: [PATCH] security/sudo: add tuneable variable SUDO_LDAP_CONF
Sergey Skvortsov
skv at FreeBSD.org
Fri Oct 3 15:30:04 UTC 2008
>Number: 127822
>Category: ports
>Synopsis: [PATCH] security/sudo: add tuneable variable SUDO_LDAP_CONF
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 03 15:30:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Sergey Skvortsov
>Release: FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD vega.protey.ru 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Sep 8 18:35:31 MSD
>Description:
Variable SUDO_LDAP_CONF can be useful to allow "sudo" with LDAP and
"nss_ldap" use the same config file (ex., "nss_ldap.conf").
Note that SUDO_LDAP_CONF set only filename.
Maybe full path to file should be more adequate choice.
>How-To-Repeat:
>Fix:
--- sudo-1.6.9.17.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/sudo/Makefile,v
retrieving revision 1.100
diff -u -u -r1.100 Makefile
--- Makefile 21 Aug 2008 06:18:21 -0000 1.100
+++ Makefile 3 Oct 2008 15:14:27 -0000
@@ -52,7 +52,8 @@
.if defined(WITH_LDAP)
USE_OPENLDAP=yes
CONFIGURE_ARGS+=--with-ldap=${PREFIX}
-CONFIGURE_ARGS+=--with-ldap-conf-file=${PREFIX}/etc/ldap.conf
+SUDO_LDAP_CONF?= ldap.conf
+CONFIGURE_ARGS+=--with-ldap-conf-file=${PREFIX}/etc/${SUDO_LDAP_CONF}
PLIST_SUB+= LDAP=""
.else
PLIST_SUB= LDAP="@comment "
--- sudo-1.6.9.17.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list