Click to See Complete Forum and Search --> : passing user login information through IIS ver4
Mark Cross
10-06-1998, 05:22 PM
I am trying to pass, via a variable, the current user name that is logged in. The user is logged in using standard NT authentication. Does anyone know the variable name used or technique used with IIS Ver4 to pass the user name (along with domain name) via html to another program.
I have tried :
value = {%REMOTE_USER%}
value = REMOTE_USER
value = USER_NAME
value = {%USERNAME%}
value = {&USERNAME}
none of these work.
If i hard code a value , value = "domain.bla33333", which is the domain/user name, it works as expected.
Any help would be greatful.
thanks
Jeramie Mercker
11-02-1998, 10:15 AM
On 10/6/98 5:22:39 PM, Mark Cross wrote:
> I am trying to pass, via a variable, the current user name that is logged
> in. The user is logged in using standard NT authentication. Does anyone
> know the variable name used or technique used with IIS Ver4 to pass the
> user name (along with domain name) via html to another program.
Using Active Server Pages on the server side... you can use the following to get the user name...
Request.ServerVariables("LOGON_USER")
Using Request.ServerVariables you can get and pass a variety of information on the current user.
To send to another URL like you were showing... I'd use a statement like this..
<%
Response.Redirect ("http://www.yoururl.com/filename.asp?uname=" & Request.ServerVariables("LOGON_USER"))
%>
You can find out more about the ServerVariables collection in any good book on ASP.
Hope that helps...
On 11/2/98 10:15:21 AM, Jeramie Mercker wrote:
> On 10/6/98 5:22:39 PM, Mark Cross wrote:
> I am trying to pass, via a
> variable, the current user name that is logged
> in. The user is logged
> in using standard NT authentication. Does anyone
> know the variable
> name used or technique used with IIS Ver4 to pass the
> user name (along
> with domain name) via html to another program.
Using Active Server Pages
> on the server side... you can use the following to get the user
> name...
Request.ServerVariables("LOGON_USER")
Using
> Request.ServerVariables you can get and pass a variety of information on
> the current user.
To send to another URL like you were showing...
> I'd use a statement like this..
<%
Response.Redirect
> ("http://www.yoururl.com/filename.asp?uname=" &
> Request.ServerVariables("LOGON_USER"))
%>
You can find out more
> about the ServerVariables collection in any good book on ASP.
Hope that
> helps...
Sharath
03-04-1999, 08:05 PM
I am on Novell Netware Network, and also I have windows NT
machine running IIS. I tried all the environmental variables
to get the user logged in.
I used environmental variables -
LOGON_USER
AUTH_USER
REMOTE_USER
But all these fail.
Can anyone please give me a solution how I can capture this value
Sharath
On 10/6/98 5:22:39 PM, Mark Cross wrote:
> I am trying to pass, via a variable, the current user name that is logged
> in. The user is logged in using standard NT authentication. Does anyone
> know the variable name used or technique used with IIS Ver4 to pass the
> user name (along with domain name) via html to another program.
I have
> tried :
value = {%REMOTE_USER%}
value = REMOTE_USER
value =
> USER_NAME
value = {%USERNAME%}
value = {&USERNAME}
none of these
> work.
If i hard code a value , value = "domain.bla33333", which is the
> domain/user name, it works as expected.
Any help would be greatful.
thanks