From SRS0=7ElIBs=TC=vvelox.net=vvelox@yourhostingaccount.com  Wed Feb 13 02:06:27 2008
Return-Path: <SRS0=7ElIBs=TC=vvelox.net=vvelox@yourhostingaccount.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D05A216A417
	for <freebsd-gnats-submit@freebsd.org>; 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 <freebsd-gnats-submit@freebsd.org>; 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." <vvelox@vvelox.net>
Sender: "Zane C.B." <vvelox@vvelox.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: New Port: net/p5-Net-LDAP-LDAPhash  This module generates a hash out of the return of Net::LDAP::Search.
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 13 02:10:01 UTC 2008
>Closed-Date:    Sun Feb 17 11:12:01 UTC 2008
>Last-Modified:  Sun Feb 17 11:20:00 UTC 2008
>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 <vvelox@vvelox.net>
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 <bsd.port.mk>
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:
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Feb 17 11:12:00 UTC 2008 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120589 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/120589: commit references a PR
Date: Sun, 17 Feb 2008 11:12:15 +0000 (UTC)

 miwi        2008-02-17 11:12:05 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net                  Makefile 
   Added files:
     net/p5-Net-LDAP-LDAPhash Makefile distinfo pkg-descr pkg-plist 
   Log:
   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.
   
   WWW: http://search.cpan.org/dist/Net-LDAP-LDAPhash/
   
   PR:             ports/120589
   Submitted by:   Zane C, Bowers <vvelox at vvelox.net>
   
   Revision  Changes    Path
   1.1966    +1 -0      ports/net/Makefile
   1.1       +21 -0     ports/net/p5-Net-LDAP-LDAPhash/Makefile (new)
   1.1       +3 -0      ports/net/p5-Net-LDAP-LDAPhash/distinfo (new)
   1.1       +13 -0     ports/net/p5-Net-LDAP-LDAPhash/pkg-descr (new)
   1.1       +7 -0      ports/net/p5-Net-LDAP-LDAPhash/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
