Authen-SASL-Perl-NTLM
view release on metacpan or search on metacpan
lib/Authen/SASL/Perl/NTLM.pm view on Meta::CPAN
# The caller expects the response to be unencoded but
# Authen::NTLM::challenge() has already encoded it
return MIME::Base64::decode_base64($response);
}
1;
__END__
=pod
=head1 NAME
Authen::SASL::Perl::NTLM - NTLM authentication plugin for Authen::SASL
=for html
<a href="https://travis-ci.org/stevenl/Authen-SASL-Perl-NTLM"><img src="https://travis-ci.org/stevenl/Authen-SASL-Perl-NTLM.svg?branch=master" alt="Build Status"></a>
<a href='https://coveralls.io/r/stevenl/Authen-SASL-Perl-NTLM?branch=master'><img src='https://coveralls.io/repos/stevenl/Authen-SASL-Perl-NTLM/badge.png?branch=master' alt='Coverage Status' /></a>
=head1 VERSION
version 0.003
=head1 SYNOPSIS
use Authen::SASL qw(Perl);
$sasl = Authen::SASL->new(
mechanism => 'NTLM',
callback => {
user => $username, # or "$domain\\$username"
pass => $password,
},
);
$client = $sasl->client_new(...);
$client->client_start;
$client->client_step('');
$client->client_step($challenge);
=head1 DESCRIPTION
This module is a plugin for the L<Authen::SASL> framework that implements the
client procedures to do NTLM authentication.
Most users will probably only need this module indirectly, when you use
another module that depends on Authen::SASL with NTLM authentication.
E.g. connecting to an MS Exchange Server using Email::Sender, which
depends on Net::SMTP(S) which in turn depends on Authen::SASL.
You may see this when you get the following error message:
No SASL mechanism found
(Unfortunately, Authen::SASL currently doesn't tell you which SASL mechanism
is missing.)
=head1 CALLBACK
The callbacks used are:
=head2 Client
=over 4
=item user
The username to be used for authentication. The domain may optionally be
specified as part of the C<user> string in the format C<"$domain\\$username">.
=item pass
The user's password to be used for authentication.
=back
=head2 Server
This module does not support server-side authentication.
=head1 SEE ALSO
L<Authen::SASL>, L<Authen::SASL::Perl>.
=for Pod::Coverage mechanism client_start client_step
=head1 AUTHOR
Steven Lee <stevenwh.lee@gmail.com>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Steven Lee.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 2.088 seconds using v1.01-cache-2.11-cpan-cdf2f3d4e48 )