Re: LWP:Authen:NTLM
- From: "Ron T." <rthompson414@xxxxxxxxx>
- Date: 28 Feb 2007 08:14:25 -0800
On Feb 28, 9:27 am, Ayaz Ahmed Khan <a...@xxxxxxxxxxxxxx> wrote:
"Ron T." typed:
I've been looking up on how to use this module, following all the
documentation and cookbooks related to it, and I'm not really sure why
I can't get through. The credentials() function is vaguely described
and I can't really find much info on this.
Have you tried it? Getting LWP::Authen::Ntlm to work is tricky. I use the
following in production code to authenticate with IIS with NTLM
authentication enabled:
my $ip = '192.168.1.1';
my $port = '443';
# This generally works. If you have domain set up to something else,
# use that, of course.
my $domain = "workgroup";
my $user = 'user';
my $pass = 'pass';
my $useragent = new LWP::UserAgent(keep_alive => 1);
$useragent->credentials("$ip:$port", '', "$domain\\$user", "$pass");
It will help massively if you enable debugging with:
use LWP::Debug qw(+);
--
Ayaz Ahmed Khan
A witty saying proves nothing, but saying something pointless gets
people's attention.
Well I gave it a shot, but it's seemingly hopeless. I'm getting the
feeling this kind of method will never work with SharePoint.
If there's a way I'm not sure, it only returns "Unauthorized" for a
response to my requests.
.
- References:
- LWP:Authen:NTLM
- From: Ron T.
- Re: LWP:Authen:NTLM
- From: Ayaz Ahmed Khan
- LWP:Authen:NTLM
- Prev by Date: Re: Howto:Perl connection to Oracle
- Next by Date: Re: Howto:Perl connection to Oracle
- Previous by thread: Re: LWP:Authen:NTLM
- Next by thread: Disable warnings from specific module
- Index(es):
Relevant Pages
|