Date: Tue, 12 Feb 2008 19:38:38 -0600 From: "Zane C.B." <vvelox@vvelox.net> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/120589: New Port: net/p5-Net-LDAP-LDAPhash This module generates a hash out of the return of Net::LDAP::Search. Message-ID: <1202866718.32028@vixen42.vulpes> Resent-Message-ID: <200802130210.m1D2A1OO002759@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1202866718.32028>