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
State Changed From-To: open->closed New port added. Thanks!
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"