The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LWPsearch.pl -- perform LDAP search using LWP mechanisms

SYNOPSIS

LWPsearch.pl [-f|--format {dsml|html|json|ldif}] [-u|--user user] [-p|--password password] LDAP-URL

DESCRIPTION

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.

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.

OPTIONS

-f|--format {dsml|html|json|ldif}

Specifies the output format to use.

For the format json to work, the Perl module JSON needs to be installed.

-u|--user user

Specifies the user to log on to the LDAP server. The user must be a DN.

-p|--password password

Specifies the password with which the user logs on to the LDAP server.

ARGUMENTS

LWPsearch.pl only takes one argument.

LDAP-URL, an LDAP URL as described in RFC 4516.

AUTHOR

Peter Marschall <peter@adpm.de>

COPYRIGHT & LICENSE

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.