ActivePerl Documentation
|
NAMENet::LDAP::FAQ - Frequently Asked Questions about Net::LDAP
SUPPORTED PLATFORMS
SYNOPSISperldoc Net::LDAP::FAQ
DESCRIPTIONThis document serves to answer the most frequently asked questions on both the perl-ldap Mailing List and personally to me.
General
What is perl-ldap ?perl-ldap is the distribution name. The perl-ldap distribution contains the Net::LDAP modules.
Why another perl LDAP implementation ?perl-ldap's goal is to be as portable as possible. It does this by being implemented completely in perl. So basically anywhere that perl runs perl-ldap will run. This is not true for other implementations which require a C compiler.
Where can I get it ?perl-ldap is available from CPAN. You will find it in the authors/id/GBARR directory. Alternatively you can download the latest version from http://www.cpan.org/search?dist=perl-ldap
Is there a mailing list ?Yes there is at perl-ldap@mail.med.cornell.edu You can subscribe to this list by sending the word subscribe in the body of a message to perl-ldap-request@mail.med.cornell.edu If you want to unsubscribe, send a message with the word unsubscribe in the body to the same address
Is the mailing list archived ?There is an archive of the perl-ldap mailing list at http://www.xray.mpe.mpg.de/mailing-lists/perl-ldap/
Is there any online documentation ?Yes. perl-ldap has a web page at http://www.pobox.com/~gbarr/perl-ldap which will have the latest documentation available.
Is there a public CVS repository ?No, not right now. But there may be in the future.
Installation
How do I install perl-ldap ?To install the modules that are in the perl-ldap distribution follow the same steps that you would for most other distributions found on CPAN, that is # replace 0.13 with the version you have gunzip perl-ldap-0.13.tar.gz tar xvf perl-ldap-0.13.tar cd perl-ldap-0.13 perl Makefile.PL make make test make install
But I do not have make, how can I install perl-ldap ?Well as luck would have it the modules in perl-ldap do not do anything complex, so a simple copy is enough to install. First run perl -V This will output information about the version of perl you have installed. Near the bottom you will find something like
@INC:
/usr/local/perl/perl5.005/lib/5.00502/sun4-solaris
/usr/local/perl/perl5.005/lib/5.00502
/usr/local/perl/perl5.005/lib/site_perl/5.005/sun4-solaris
/usr/local/perl/perl5.005/lib/site_perl/5.005
.
This is a list of directories that perl searches when it is looking for
a module. The directory you need is the site_perl directory, but without
the syatem architecture name, in this case it is
# replace 0.13 with the version you have gunzip perl-ldap-0.13.tar.gz tar xvf perl-ldap-0.13.tar cd perl-ldap-0.13/lib cp * /usr/local/perl/perl5.005/lib/site_perl/5.005
What other modules will I need ?perl-ldap does use other modules. Some are required, but some are optional (ie required to use certain features)
Using Net::LDAP
How do I connect to my server ?The connection to the server is created when you create a new Net::LDAP object, e.g. $ldap = Net::LDAP->new($server);
Net::LDAP->new sometimes returns undef, why ?The constructor will return undef if there was a problem connecting to the specified server. Any error message will be available in $@
How can I tell when the server returns an error,
|
|
Net::LDAP::FAQ - Frequently Asked Questions about Net::LDAP |