NAME

Authen::NTLM - An NTLM authentication module

SYNOPSIS

use Mail::IMAPClient;
use Authen::NTLM;
my $imap = Mail::IMAPClient->new(Server=>'imaphost');
ntlm_user($username);
ntlm_password($password);
$imap->authenticate("NTLM", Authen::NTLM::ntlm);
:
$imap->logout;

DESCRIPTION

This module provides methods to use NTLM authentication.  It can
be used as an authenticate method with the Mail::IMAPClient module
to perform the challenge/response mechanism for NTLM connections
or it can be used on its own for NTLM authentication with other
protocols (eg. HTTP).

The implementation is a direct port of the code from F<fetchmail>
which, itself, has based its NTLM implementation on F<samba>.  As
such, this code is not especially efficient, however it will still
take a fraction of a second to negotiate a login on a PII which is
likely to be good enough for most situations.

FUNCTIONS

ntlm_user()
Set the username to use in the NTLM authentication messages.
ntlm_passwd()
Set the password to use in the NTLM authentication messages.
ntlm()
Generate a reply to a challenge.  The NTLM protocol involves an
initial empty challenge from the server requiring a message
containing the username

AUTHOR

Mark Bush <Mark.Bush@bushnet.demon.co.uk> - perl port
Eric S. Raymond - author of fetchmail
Andrew Tridgell and Jeremy Allison for SMB/Netbios code

SEE ALSO

perl, Mail::IMAPClient