Re: LWP:Authen:NTLM



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.

.



Relevant Pages

  • Re: LWP:Authen:NTLM
    ... "Ron T." ... documentation and cookbooks related to it, and I'm not really sure why ... The credentials() function is vaguely described ... A witty saying proves nothing, ...
    (comp.lang.perl.misc)
  • NT User A/C Lock
    ... The account locked by the web auto reflash after changing the password. ... That is part of documentation. ... > machine and the credentials they use are supposed to be documented. ... > Understanding the ISA 2004 Access Rule Processing ...
    (microsoft.public.security)
  • Re: Problem with SCHTASKS parameters
    ... but the documentation is quite misleading. ... since you can't authenticate the job and change its psw in the same ... >> I'm trying to use schtasks to modify existing jobs, ... /RU and /RP define the credentials ...
    (microsoft.public.windows.server.scripting)
  • Re: Task Schedule Credentials - where stored?
    ... > just where and how does the win2K and XP Task Schedulers store the ... > Can some one point my to MS documentation. ... > know how securely those credentials are stored. ... This kind of thing is easy to delimit by running monitor ...
    (microsoft.public.win2000.general)
  • Re: Problem with SCHTASKS parameters
    ... QUERY's work, and my syntax seesm to match the documentation, I keep ... Carefully read the descriptions for /U and /P, and compare these with ... /U and /P define the credentials that Schtasks should use when authenticating on the remote system. ...
    (microsoft.public.windows.server.scripting)