For Programmers: Free Programming Magazines  


Home > Archive > ASP > March 2005 > how to retrieve windows login/pwd in ASP ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to retrieve windows login/pwd in ASP ?
bob

2005-03-29, 8:55 pm

hi,

I want to redirect my user to another page.
With ASP (not .Net) and IIS 5.0, under Windows 2000 server.

We have installed the component WinHTTP that is used to manipulate http
requests.

We want to automatically identify the user through his Windows login/pwd
(NTML) He does not need to type it.
How do i get the login/pwd from windows, and perfom an authentification
control ?

A subsidiary question:
then how do i set up a cookie in the client computer ?

thanks


McKirahan

2005-03-29, 8:55 pm

"bob" <pap@dd.com> wrote in message
news:4249b1e7$0$11682$8fcfb975@news.wanadoo.fr...
> hi,
>
> I want to redirect my user to another page.
> With ASP (not .Net) and IIS 5.0, under Windows 2000 server.
>
> We have installed the component WinHTTP that is used to manipulate http
> requests.
>
> We want to automatically identify the user through his Windows login/pwd
> (NTML) He does not need to type it.
> How do i get the login/pwd from windows, and perfom an authentification
> control ?
>
> A subsidiary question:
> then how do i set up a cookie in the client computer ?
>
> thanks


http://www.aspfaq.com/5003


Bob Barrows [MVP]

2005-03-29, 8:55 pm

bob wrote:
> hi,
>
> I want to redirect my user to another page.
> With ASP (not .Net) and IIS 5.0, under Windows 2000 server.
>
> We have installed the component WinHTTP that is used to manipulate
> http requests.
>
> We want to automatically identify the user through his Windows
> login/pwd (NTML) He does not need to type it.
> How do i get the login/pwd from windows, and perfom an
> authentification control ?


You can't get his password. You can get his login by using the LOGON_USER
servervariable (do a search at www.aspfaq.com for details)

>
> A subsidiary question:
> then how do i set up a cookie in the client computer ?
>

Google is your friend.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com