1NTLM Authentication Scheme 2========================== 3 4This module implements the NTLM authentication mechanism. It can be 5used to perform NTLM style authentication for any desired protocol. 6 7The module works well with the Mail::IMAPClient module in the 8"authenticate" method, however I had to make a change to that method 9for it to work. The following line (2511 in version 2.1.4): 10 11 ($code) = $o->[DATA] =~ /^\+ (.*)$/ ; 12 13needed to be changed to: 14 15 ($code) = $o->[DATA] =~ /^\+(.*)$/ ; 16 17as the initial NTLM challenge is empty. 18 19This module also works well with LWP::Authen::Ntlm , allowing LWP::UserAgent 20and/or WWW::Mechanise to automate/browse/fetch/etc remote Microsoft Windows 21servers running NTLM authentication. 22Example use is like this(note the fact that NTLM.pm is NOT explicitly used!): 23 24 use WWW::Mechanize; 25 $mech = WWW::Mechanize->new(keep_alive=>1); 26 $mech->no_proxy('my.server'); 27 $mech->credentials('my.server:80', '', "my_domain\\my_user", my_pass); 28 $response = $mech->get( $url ); 29 30 31INSTALLATION 32 33To install this application: 34 35 perl Makefile.PL 36 make 37 make test 38 make install 39 40DEPENDENCIES 41 42This module requires the MIME::Base64 module, and Digest::HMAC_MD5 43 44COPYRIGHT AND LICENSE 45 46This program is free software; you can redistribute it and/or modify 47it under the terms of either: 48 49 a) the GNU General Public License as published by the Free 50 Software Foundation; either version 1, or (at your option) any 51 later version, or 52 53 b) the "Artistic License" which comes with this Kit. 54 55This program is distributed in the hope that it will be useful, 56but WITHOUT ANY WARRANTY; without even the implied warranty of 57MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either 58the GNU General Public License or the Artistic License for more details. 59 60You should have received a copy of the Artistic License with this 61Kit, in the file named "COPYING-Artistic". If not, I'll be glad to provide one. 62 63You should also have received a copy of the GNU General Public License version 1 64along with this program in the file named "COPYING-GPL". If not, write to the 65Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 66Boston, MA 02110-1301, USA or visit their web page on the internet at 67http://www.gnu.org/copyleft/gpl.html. 68 69For those of you that choose to use the GNU General Public License, 70my interpretation of the GNU General Public License is that no Perl 71script falls under the terms of the GPL unless you explicitly put 72said script under the terms of the GPL yourself. Furthermore, any 73object code linked with perl does not automatically fall under the 74terms of the GPL, provided such object code only adds definitions 75of subroutines and variables, and does not otherwise impair the 76resulting interpreter from executing any standard Perl script. I 77consider linking in C subroutines in this manner to be the moral 78equivalent of defining subroutines in the Perl language itself. You 79may sell such an object file as proprietary provided that you provide 80or offer to provide the Perl source, as specified by the GNU General 81Public License. (This is merely an alternate way of specifying input 82to the program.) You may also sell a binary produced by the dumping of 83a running Perl script that belongs to you, provided that you provide or 84offer to provide the Perl source as specified by the GPL. (The 85fact that a Perl interpreter and your code are in the same binary file 86is, in this case, a form of mere aggregation.) This is my interpretation 87of the GPL. If you still have concerns or difficulties understanding 88my intent, feel free to contact me. Of course, the Artistic License 89spells all this out for your protection, so you may prefer to use that. 90 91License clarified by Nick Bebout per email from David Bussenschutt. 92<nb@fedoraproject.org> 93 94Parts of this code Copyright (C) 2007 David (Buzz) Bussenschutt. 95<davidbuzz@gmail.com> 96 97Perl port of this code is Copyright (C) 2001 Mark Bush. 98<Mark.Bush@bushnet.demon.co.uk> 99 100The code is originally based on fetchmail code which is Copyright (C) 1997 Eric 101S. Raymond. 102 103Fetchmail uses SMB/Netbios code from samba which is Copyright (C) 104Andrew Tridgell 1992-1998 with modifications from Jeremy Allison. 105