NAME

ldap.pl - cgi enabled ldap lookup script


SYNOPSIS

Only one parameter is used, filter_name. This is a string of the name of the person to be looked up using ldap.

The script will return a list of names and email addresses that they can be mailed to using another script. The user name and password are acquired from session variables.

If the filter uses any non-word characters, they are replaced with a wildcard character, this should allow any names input with strange characters to be parsed. It should also be a bit more secure.

sub connect_ldap

Will connect to the ldap server and return the connection. Dies if the connection cannot be made.

sub generate_list

Generate list generates an array of hashes that will be passed into the the HTML Template to be printed. It takes 2 parameters as follows: