Authen::SASL::Perl::NTLM - NTLM authentication plugin for Authen::SASL
version 0.003
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);
This module is a plugin for the 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.)
The callbacks used are:
The username to be used for authentication. The domain may optionally be specified as part of the user string in the format "$domain\\$username".
user
"$domain\\$username"
The user's password to be used for authentication.
This module does not support server-side authentication.
Authen::SASL, Authen::SASL::Perl.
Steven Lee <stevenwh.lee@gmail.com>
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.
To install Authen::SASL::Perl::NTLM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::SASL::Perl::NTLM
CPAN shell
perl -MCPAN -e shell install Authen::SASL::Perl::NTLM
For more information on module installation, please visit the detailed CPAN module installation guide.