Net::LDAP::LDAPhash - Takes from a search and turns it into a hash.
Version 1.0.3
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); ...
LDAPhash
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.
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or the like to vvelox@vvelox.net.
You can find documentation for this module with the perldoc command.
perldoc Net::LDAP::LDAPhash
Copyright 2011 Zane C. Bowers-Hadley, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
WIML, #43892, pointed out out that 't/pod-coverage.t' does not exist, but does in the MANIFEST
To install Net::LDAP::LDAPhash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAP::LDAPhash
CPAN shell
perl -MCPAN -e shell install Net::LDAP::LDAPhash
For more information on module installation, please visit the detailed CPAN module installation guide.