Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Oct 2008 15:21:02 GMT
From:      Sergey Skvortsov <skv@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tmclaugh@FreeBSD.org
Subject:   ports/127822: [PATCH] security/sudo: add tuneable variable SUDO_LDAP_CONF
Message-ID:  <200810031521.m93FL29Q088791@freefall.freebsd.org>
Resent-Message-ID: <200810031530.m93FU3J3089075@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810031521.m93FL29Q088791>