Re: HTTP Authentication IN perl blind to user
am 13.09.2004 19:40:54 von Invalid"KG"
news:f0cc41a1.0407141402.76b3a88c@posting.google.com...
> Hi,
>
> I have a password protected page (via standard .htaccess stuff).
>
> I want to automatically log users onto this page using perl, without
> them ever seeing the username:password combo.
>
> Ideally the script would
>
> 1. autheticate the user
> 2. redirect them to the password protected page
>
> What I initally wanted to do was do a print location of
> http://un:pw@www.theserver.com/protected/redirect.html which would log
> them on and then the .html page would just redirect -- but MSFT killed
> tossed username:password combos into the URL a couple months ago,
> dammit.
>
> Any clues?
Since you were planning on passing the uid/pw plain text, then this should
suffice:
http://www.theserver.com/protected/redirect.html?user=uid&pw =pass
Then pull the user and pw values. If they exist and are correct, redirect --
if not, have a redirect to
a .htaccess enabled site directory and have them auth.