in reply to LWP::UserAgent and NT Challenge Response authentication

Check this code:
$ua = new LWP::UserAgent; $request = new HTTP::Request('GET', $url); $request->authorization_basic($login,$passw); $response = $ua->request($request);

Remember to set the permissions in NT correctly. If the user which is executing the script doesn't have permissions to read the script, I use to obtain the annoying
Error: Access is Denied
(last time this morning) :-)
Remember to check NT permissions
Hopes

Replies are listed 'Best First'.
Re: Re: LWP::UserAgent and NT Challenge Response authentication
by rchiav (Deacon) on Nov 03, 2001 at 22:12 UTC
    The problem is that I do have permission to read the file. As I pointed out above, I can use IE to view the page without a prompt for a password or an error. In your case, you're probably using NTCR and basic authentication. In my case, the page does not provide basic authentication. That's not something I can control

    PS - To those who have downvoted this, it would be nice if you explained youself. If I'm not understanding how to force IIS to use basic authentication when it's configured NOT to use basic authentication, let me know. I'm sure there's a lot of people who would love to know how to do this seeing as though you can't use Netscape to view pages that are set up to JUST use NT Challenege Response Authentication.