Advertisement

04.22.2004 at 05:50PM PDT, ID: 20964403
[x]
Attachment Details

Perl access with Integrated Windows Authentication

Asked by beets in Perl Programming Language

Tags:

I have a Perl Script which works when Basic Authentication is used but gives Http Error 401 after the IIS Authentication Method is changed to "Integrated Windows Authentication" on Windows 2000.

The script is:

# non-buffered output to server
 $|=1;

 use LWP::UserAgent;
 use URI::URL;

 local $ua = LWP::UserAgent->new;
 $ua->timeout(20);      # set our BASIS WEBserver timeout to 20 seconds
 $myoutput = "";
 $item = 1;
 do {
    local $req = HTTP::Request->new(GET =>  "http://nztva$dbmv"."DDW?W=$url\&m=$item\&R=Y\&U=1\n\n");
    $req->authorization_basic("b","c");      # uid and password for authorized WWW sources
    $res =$ua->request($req);
    $myoutput = $myoutput . $res->content;
    $item++;
  }  while ($item <= $tmem);      # end do
 $myoutput =~ s/\r/\r~/g;
 print "Content-type: text/html\n";
 print "Content-Length: " . length($myoutput) . "\n\n";
 $myoutput =~ s/\r~/\r/g;
 print $myoutput;

}
exit;

This script concatenantes a series of web pages into 1 page for display. I get a series of 401 authentication errors instead of the data:

HTTP Error 401
401.2 Unauthorized: Logon Failed due to server configuration

How do I need to change the line:

   $req->authorization_basic("b","c");      # uid and password for authorized WWW sources

To allow access when using Integrated Windows Authentication on Windows 2000 and Windows NT Challenge/Response on Windows NT?

I'm sure it's easy to do but I don't know how!

Thanks for your Help.
Start Free Trial
[+][-]04.22.2004 at 06:23PM PDT, ID: 10895412

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.22.2004 at 06:57PM PDT, ID: 10895587

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2004 at 07:06PM PDT, ID: 10895633

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2004 at 07:25PM PDT, ID: 10895711

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2004 at 09:08PM PDT, ID: 10905972

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2004 at 07:51PM PDT, ID: 10915002

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2004 at 09:29PM PDT, ID: 10915349

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2004 at 06:28PM PDT, ID: 10924170

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.26.2004 at 07:05PM PDT, ID: 10924453

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2004 at 07:10PM PDT, ID: 10924478

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2004 at 07:39PM PDT, ID: 10924600

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.26.2004 at 10:11PM PDT, ID: 10925320

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.27.2004 at 03:58AM PDT, ID: 10927253

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.27.2004 at 05:58PM PDT, ID: 10934458

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.27.2004 at 06:45PM PDT, ID: 10934653

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.27.2004 at 08:05PM PDT, ID: 10935064

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.27.2004 at 08:39PM PDT, ID: 10935227

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.27.2004 at 09:29PM PDT, ID: 10935475

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2004 at 08:23PM PDT, ID: 10945584

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: perl
Sign Up Now!
Solution Provided By: jmcg
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32