toyman61
asked on
ASP-code for authentication using Internet Information Server
I have a Windows 2003 SBS server with Internet Information Server installed. To be able to access file system directories using a web browser I have defined that Windows authentication is to be used. The popup-windows shows up ok, but I wonder how I could tailor this popup-window for my needs, i.e. by adding a company logo and/or company name on it.
I also wonder how I could pick up the logon-name in an ASP-variable so that I can use it later in the application.
I also wonder how I could pick up the logon-name in an ASP-variable so that I can use it later in the application.
That's the fun of windows solutions, as far as I know, you have no control over that popup whatsoever.
ASKER
OK.
But is there any way I can pick up the login name when that popup-window appears?
But is there any way I can pick up the login name when that popup-window appears?
If you want the NT login name AFTER the user logs in, use :
<%
DIM uName
uName = Request.ServerVariables ("LOGON_USER")
%>
That will return the login name with windows domain in an 'domain\login' format.
<%
DIM uName
uName = Request.ServerVariables ("LOGON_USER")
%>
That will return the login name with windows domain in an 'domain\login' format.
ASKER
Thanks Irygiel,
Is there any other parameters available with the Request.ServerVariables? More specific: Where can I find information/documentation about this topic?
Is there any other parameters available with the Request.ServerVariables? More specific: Where can I find information/documentation about this topic?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.