Authen::SASL - SASL Authentication base class
use Authen::SASL; $sasl = Authen::SASL->new('CRAM-MD5', password => $pass);
SASL is a generic mechanism for authentication used by several network protocols. Authen::SASL provides an implementation that all protocols should be able to share.
There are many different encryption methods that can be used with SASL. These are implemented as sub-classes of Authen::SASL. For example the package that implements the CRAM-MD5 SASL is called Authen::SASL::CRAM_MD5. Note that the - is eplaced with an _. Authen::SASL::CRAM_MD5 also inherits from Authen::SASL. This means that the following two statements give identical results
$sasl = Authen::SASL->new('CRAM-MD5', password => $pass); $sasl = Authen::SASL::CRAM_MD5->new(password => $pass);
the difference being that the frst one will load the Authen::SASL::CRAM_MD5 package for you when this code is run for the first time. If you use the second method then you must require the package yourself.
Authen::SASL::CRAM_MD5
Graham Barr <gbarr@pobox.com>
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap-dev@lists.sourceforge.net>
Copyright (c) 1998-2000 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id$
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.