Net::LDAP::LDAPhash - Takes from a search and turns it into a hash.


Net-LDAP-LDAPhash documentation  | view source Contained in the Net-LDAP-LDAPhash distribution.

Index


NAME

Top

Net::LDAP::LDAPhash - Takes from a search and turns it into a hash.

VERSION

Top

Version 1.0.2

SYNOPSIS

Top

    	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);
    	...

EXPORT

Top

LDAPhash

FUNCTIONS

Top

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.

AUTHOR

Top

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

Top

Please report any bugs or the like to vvelox@vvelox.net.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Net::LDAP::LDAPhash




COPYRIGHT & LICENSE

Top


Net-LDAP-LDAPhash documentation  | view source Contained in the Net-LDAP-LDAPhash distribution.