From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 13 02:10:02 2008 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 2F74716A480 for ; Wed, 13 Feb 2008 02:10:02 +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 0627513C4DD for ; Wed, 13 Feb 2008 02:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1D2A1p6002765 for ; Wed, 13 Feb 2008 02:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1D2A1OO002759; Wed, 13 Feb 2008 02:10:01 GMT (envelope-from gnats) Resent-Date: Wed, 13 Feb 2008 02:10:01 GMT Resent-Message-Id: <200802130210.m1D2A1OO002759@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, "Zane C.B." Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D05A216A417 for ; Wed, 13 Feb 2008 02:06:27 +0000 (UTC) (envelope-from SRS0=7ElIBs=TC=vvelox.net=vvelox@yourhostingaccount.com) Received: from mailout14.yourhostingaccount.com (mailout14.yourhostingaccount.com [65.254.253.115]) by mx1.freebsd.org (Postfix) with ESMTP id 89A4513C4E8 for ; Wed, 13 Feb 2008 02:06:27 +0000 (UTC) (envelope-from SRS0=7ElIBs=TC=vvelox.net=vvelox@yourhostingaccount.com) Received: from mailscan15.yourhostingaccount.com ([10.1.15.15] helo=mailscan15.yourhostingaccount.com) by mailout14.yourhostingaccount.com with esmtp (Exim) id 1JP6Xx-0001yY-80 for freebsd-gnats-submit@freebsd.org; Tue, 12 Feb 2008 20:36:25 -0500 Received: from impout03.yourhostingaccount.com ([10.1.55.3] helo=impout03.yourhostingaccount.com) by mailscan15.yourhostingaccount.com with esmtp (Exim) id 1JP6Xx-0006TB-CB for freebsd-gnats-submit@freebsd.org; Tue, 12 Feb 2008 20:36:25 -0500 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9]) by impout03.yourhostingaccount.com with NO UCE id opcR1Y0010BkWne0000000; Tue, 12 Feb 2008 20:36:25 -0500 Received: from c-98-206-161-17.hsd1.il.comcast.net ([98.206.161.17] helo=vixen42.vulpes) by authsmtp09.yourhostingaccount.com with esmtpa (Exim) id 1JP6Xw-0001ED-W8 for FreeBSD-gnats-submit@freebsd.org; Tue, 12 Feb 2008 20:36:25 -0500 Message-Id: <1202866718.32028@vixen42.vulpes> Date: Tue, 12 Feb 2008 19:38:38 -0600 From: "Zane C.B." Sender: "Zane C.B." To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: Subject: ports/120589: New Port: net/p5-Net-LDAP-LDAPhash This module generates a hash out of the return of Net::LDAP::Search. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 02:10:02 -0000 >Number: 120589 >Category: ports >Synopsis: New Port: net/p5-Net-LDAP-LDAPhash This module generates a hash out of the return of Net::LDAP::Search. >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 Feb 13 02:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Zane C.B. >Release: FreeBSD 6.3-STABLE i386 >Organization: >Environment: System: FreeBSD 6.3-STABLE #1: Mon Jan 28 13:16:42 CST 2008 kitsune@vixen42.vulpes:/usr/obj/usr/src/sys/SMP >Description: LDAPhash ( mesg ) This takes from a search and turns it into a hash. The returned has is in the following format. {DN}{ldap}{attribute}[array of values for this attribute] The reason for the {ldap} is to allow for other values and the like to be tagged onto a hash for a DN that are unrelated to LDAP. This function does not make any attempt to check if the search succedded or not. use Net::LDAP::LDAPhash; my $ldapconnection = Net::LDAP->new( "127.0.0.1" ) my $bindMessage->bind( "cn=admin,dc=someBase", password=>"password", version=>3 ); my $mesg = $ldapconnection->search(scope=>"sub","dc=someBase", filter=>"(objectClass=*)"); my %foo = LDAPhash($mesg); >How-To-Repeat: 1: unshar 2: 3: enjoy >Fix: --- p5-Net-LDAP-LDAPhash.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Net-LDAP-LDAPhash/ # p5-Net-LDAP-LDAPhash/Makefile # p5-Net-LDAP-LDAPhash/distinfo # p5-Net-LDAP-LDAPhash/pkg-descr # p5-Net-LDAP-LDAPhash/pkg-plist # echo c - p5-Net-LDAP-LDAPhash/ mkdir -p p5-Net-LDAP-LDAPhash/ > /dev/null 2>&1 echo x - p5-Net-LDAP-LDAPhash/Makefile sed 's/^X//' >p5-Net-LDAP-LDAPhash/Makefile << 'END-of-p5-Net-LDAP-LDAPhash/Makefile' X# New ports collection makefile for: p5-Net-LDAP-LDAPhash X# Date created: 2008-02-13 X# Whom: Zane C, Bowers X# X# $FreeBSD$ X# X XPORTNAME= Net-LDAP-LDAPhash XPORTVERSION= 1.0.1 XCATEGORIES= net perl5 XMASTER_SITES= CPAN XPKGNAMEPREFIX= p5- X XMAINTAINER= vvelox@vvelox.net XCOMMENT= Make a hash out or the return from a search using Net::LDAP::Search X XPERL_CONFIGURE= yes X XMAN3= Net::LDAP::LDAPhash.3 X X.include END-of-p5-Net-LDAP-LDAPhash/Makefile echo x - p5-Net-LDAP-LDAPhash/distinfo sed 's/^X//' >p5-Net-LDAP-LDAPhash/distinfo << 'END-of-p5-Net-LDAP-LDAPhash/distinfo' XMD5 (Net-LDAP-LDAPhash-1.0.1.tar.gz) = e63c52fe9df4cfdb00b64c84af18a472 XSHA256 (Net-LDAP-LDAPhash-1.0.1.tar.gz) = 17e93b33f0e87635ee7712c3290f73fe086401ee3aba8a6405edb74a19f0283e XSIZE (Net-LDAP-LDAPhash-1.0.1.tar.gz) = 3333 END-of-p5-Net-LDAP-LDAPhash/distinfo echo x - p5-Net-LDAP-LDAPhash/pkg-descr sed 's/^X//' >p5-Net-LDAP-LDAPhash/pkg-descr << 'END-of-p5-Net-LDAP-LDAPhash/pkg-descr' XThis takes from a search and turns it into a hash. X XThe returned has is in the following format. X X{DN}{ldap}{attribute}[array of values for this attribute] X XThe reason for the {ldap} is to allow for other values and the like to be tagged onto a hash for a DN that are unrelated to LDAP. X XThis function does not make any attempt to check if the search succedded or not. X XWWW: http://search.cpan.org/~vvelox/Net-LDAP-LDAPhash-1.0.1/ END-of-p5-Net-LDAP-LDAPhash/pkg-descr echo x - p5-Net-LDAP-LDAPhash/pkg-plist sed 's/^X//' >p5-Net-LDAP-LDAPhash/pkg-plist << 'END-of-p5-Net-LDAP-LDAPhash/pkg-plist' X%%SITE_PERL%%/Net/LDAP/LDAPhash.pm END-of-p5-Net-LDAP-LDAPhash/pkg-plist exit --- p5-Net-LDAP-LDAPhash.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: