jef_le_ponot > LWP-Protocol-ldap-1.12 > LWP::Protocol::ldap

Download:
LWP-Protocol-ldap-1.12.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.12   Source  

NAME ^

LWP::Protocol::ldap - The great new LWP::Protocol::ldap!

VERSION ^

Version 1.12

SYNOPSIS ^

This module is another version of the great original Graham Barr Module ldap.pm It is used for supply to the LWP::userAgent an access to LDAP services like the command "ldapsearch". The authentification user/password work. Formating Export data is ldif or html (default)

# do the work for you use LWP::UserAgent; use LWP::Protocol; use LWP::Protocol::ldap;

LWP::Protocol::implementor('ldap', 'LWP::Protocol::ldap');

# now just continue as normal my $ua = new LWP::UserAgent; $ua->default_header( 'Accept' => 'text/ldif' ); my $response = $ua->get('ldap://user:passord@ldap.server:389/dn=com?attributSearch?one?(objectclass=*)'); my $html = $res->content(); print $html;

or if there is no authentification

my $ua = new LWP::UserAgent; my $response = $ua->get('ldap://ldap.server/dn=com?attributSearch?one?(objectclass=*)?x-format=ldif'); my $html = $res->content(); print $html;

EXPORT ^

A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.

SUBROUTINES/METHODS ^

request

AUTHOR ^

Jef Le_Ponot, <jef_le_ponot at voila.fr>

BUGS ^

Please report any bugs or feature requests to bug-lwp-protocol-ldap at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LWP-Protocol-ldap. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

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

    perldoc LWP::Protocol::ldap

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

Copyright 2011 Jef Le_Ponot.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: