Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window authentication

Status
Not open for further replies.

Maximus007

Technical User
Joined
Jul 26, 2004
Messages
248
Location
US
I have a form that that has a user name and I would like it to capture the user's logon. Now I understand that I have to use the following code , but it came up blank? Could any one tell me what is this happening? Am I suppose to do something else?

<input type="text" name="Cae_Name" size="20" value="<%=Request.ServerVariables("LOGON_USER")%>"></SPAN></span></p>
<p align="left"><span style="vertical-align: middle">


Thanks
 
IIS has to require NT authentication in order to force it to record the NT authentication information. I don't know why it is that way, it just is. If you packet sniff web transactions you'll see the NT username get passed with web requests but for whatever reason IIS doesn't actually hold on to them andmake them available unless you set the option in IIS for NT authentication.
Of course at that point the user will either have to login everytime or be suing either a domain account or be set up in your users and groups for that box.

Don;t take my word for tat, I haven't messed with NT authentication in years, so I may be remembering incorrectly.

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
Need an expensive ASP developer in the North Carolina area? Feel free to let me know.


 
I still appreciate the input. I will look into that.

Thanks
 
Tarwn is right, you can cofigure IIS to use Windows Authentication as well as anonomous access.
This will pass LOGON_USER for any one in a domain trusted by the webserver.
The alternative is to remove anonomous access which will force anyone not on a trusted domain to login everytime they hit the site.
 
Does any one know where I can get the step on how to configure IIS?
 
In the Internet Information Services console, open the properties dialog for the website or virtual directory you are using. Select the Directory security tab, then click the edit button in the 'Anomymous access and authentication control' section.
This dialog will enable you to turn anonymous access on or off and specify whether to use Integrated Windows Authentication.
 
Thank you! I will go ahead and try it now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top