LWPsearch.pl -- perform LDAP search using LWP mechanisms
LWPsearch.pl [-f|--format {dsml|html|json|ldif}] [-u|--user user] [-p|--password password] LDAP-URL
dsml
html
json
ldif
LWPsearch.pl parses the LDAP URL given on the command line using the methods provided by LWP::Protocol::ldap message, connects to the LDAP server given in the URL, and performs the search described in the URL.
LWP::Protocol::ldap
If user and password are given, they are used to do a simple bind before the search.
The output depends on the option -f|--format.
Specifies the the output format to use.
For the format json to work, the Perl module JSON needs to be installed.
JSON
Specifies the user to log on to the LDAP server. The user must be a DN.
Specifies the password with which the user logs on to the LDAP server.
LWPsearch.pl only takes one argument.
LDAP-URL, an LDAP URL as described in RFC 4516.
Peter Marschall <peter@adpm.de>
Copyright (c) 2012 Peter Marschall All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::LDAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAP
CPAN shell
perl -MCPAN -e shell install Net::LDAP
For more information on module installation, please visit the detailed CPAN module installation guide.