|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Getting logged in Username from IIS in Windows Authentication mode
Hi everyone!
How can i get the logged in username from IIS in Windows Authentication mode (in ASP)? Would it be one of the server variables? Any input would be appreciated! Thanx
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ |
|
#2
|
|||
|
|||
|
Hey man..i think its Request.ServerVariables("AUTH_USER") and Request.ServerVariables("AUTH_PASS")
|
|
#3
|
|||
|
|||
|
i used a script about a year ago which had "whatuser" and a little widget which queried windows i presume to find out the exact login username - then you can manipulate around that.
ill see if i can find out where i got it, think it was 4guysfromrolla.com matt |
|
#4
|
|||
|
|||
|
Authentication in IIS
Hi guys!!!
i have tried all service variables like request.ServiceVariables("Auth_User"), but i didnt get any info. of logged user of windows. i m using windows 2000 prof. Please let me know , i require its urgently in my software. Thanks.... |
|
#5
|
|||
|
|||
|
Hi
The variable AUTH_USER or even LOGON_USER will store the info only if the authentication for the website is set to "Integrated Windows authentication" for example otherwise it will be empty because the default is "Anonymous access" which does not require a username or pw. To set the authentication - use IIS I hope this helps Cristina Quote:
|
|
#6
|
|||
|
|||
|
Thanks for the tip, helped me line up test servers
Thanks Christina,
I was trying to figure out why Code:
<%=Request.ServerVariables("AUTH_USER")%>
This server var is really useful, we're using it as both password and automatic login into a form...the same value will then become the primary key in the employee table of a web app. For now I just set a specific test directory (by right-clicking the directory in IIS and selecting properies), but I suppose one could set this on root. Is this only recommended for an intranet environment? |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Getting logged in Username from IIS in Windows Authentication mode |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|