From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 21 00:50:10 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36885106566B for ; Wed, 21 Dec 2011 00:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0CFA58FC0C for ; Wed, 21 Dec 2011 00:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBL0o9k6057960 for ; Wed, 21 Dec 2011 00:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBL0o9uf057959; Wed, 21 Dec 2011 00:50:09 GMT (envelope-from gnats) Resent-Date: Wed, 21 Dec 2011 00:50:09 GMT Resent-Message-Id: <201112210050.pBL0o9uf057959@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, rflynn@acsalaska.net Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68BA9106566B; Wed, 21 Dec 2011 00:43:53 +0000 (UTC) (envelope-from mel@datakitty.lan.rachie.is-a-geek.net) Received: from datakitty.lan.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id DEA6B8FC13; Wed, 21 Dec 2011 00:43:52 +0000 (UTC) Received: from datakitty.lan.rachie.is-a-geek.net (localhost [127.0.0.1]) by datakitty.lan.rachie.is-a-geek.net (8.14.5/8.14.5) with ESMTP id pBL0TTBc099926; Tue, 20 Dec 2011 15:29:29 -0900 (AKST) (envelope-from mel@datakitty.lan.rachie.is-a-geek.net) Received: (from mel@localhost) by datakitty.lan.rachie.is-a-geek.net (8.14.5/8.14.5/Submit) id pBL0TTZL099925; Tue, 20 Dec 2011 15:29:29 -0900 (AKST) (envelope-from mel) Message-Id: <201112210029.pBL0TTZL099925@datakitty.lan.rachie.is-a-geek.net> Date: Tue, 20 Dec 2011 15:29:29 -0900 (AKST) From: Mel.Flynn@rachie.is-a-geek.net To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: MAINTAINER Subject: ports/163492: [patch] security/pam_ldap: Install schema files. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rflynn@acsalaska.net List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2011 00:50:10 -0000 >Number: 163492 >Category: ports >Synopsis: [patch] security/pam_ldap: Install schema files. >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: Wed Dec 21 00:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Mel Flynn >Release: FreeBSD 8.2-STABLE amd64 >Organization: >Environment: System: FreeBSD datakitty.lan.rachie.is-a-geek.net 8.2-STABLE FreeBSD 8.2-STABLE #5: Fri Nov 11 11:35:54 AKST 2011 mel@datakitty.lan.rachie.is-a-geek.net:/data/obj/data/RELENG_8/src/sys/GENERIC amd64 >Description: While trying to implement service authorization I spent a few brain cycles and google searches for the schema for it, only to find that they come with the pam_ldap module. >How-To-Repeat: make -C ${PORTSDIR:-"/usr/ports"}/security/pam_ldap clean install ldapns.schema is nowhere to be found. >Fix: --- pam_ldap.patch begins here --- # Add schemas to pam_ldap data directory --- Makefile.orig 2011-02-24 16:32:06.000000000 -0900 +++ Makefile 2011-12-20 13:24:46.000000000 -0900 @@ -7,7 +7,7 @@ PORTNAME= pam_ldap PORTVERSION= 1.8.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security net MASTER_SITES= http://www.padl.com/download/ \ ftp://ftp.padl.com/pub/ @@ -28,6 +28,7 @@ --with-ldap-secret-file=${PREFIX}/etc/ldap.secret PKGMESSAGE= ${WRKDIR}/pkg-message +PORTDATA= *.schema MAN5= pam_ldap.5 @@ -35,8 +36,15 @@ @${REINPLACE_CMD} -e 's|/usr/bin/perl|${LOCALBASE}/bin/perl|' \ ${WRKSRC}/vers_string +pre-install: + @if [ ! -d ${DATADIR} ]; then \ + ${MKDIR} ${DATADIR}; \ + fi + post-install: - @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' < ${PKGDIR}/pkg-message \ + @${INSTALL_DATA} ${WRKSRC}/*.schema ${DATADIR} + @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ + -e 's|%%DATADIR%%|${DATADIR}|' < ${PKGDIR}/pkg-message \ | /usr/bin/fmt 75 79 > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} --- pkg-message.orig 2005-08-27 11:20:04.000000000 -0800 +++ pkg-message 2011-12-20 13:21:00.000000000 -0900 @@ -5,4 +5,9 @@ on 5.X and higher with a line similar to the following: login auth sufficient %%PREFIX%%/lib/pam_ldap.so + +-------------------------------------------------------------------------------- + +To use additional attributes supported by this module, you may need to add +one or more schema files installed in %%DATADIR%% to your slapd.conf ================================================================================ --- pam_ldap.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: