within the intranet, all user are required to login.
How can I get the User ID and Domain in ASP page?

Re: in intranet, How can I get the userID using ASP? by Slim

Slim
Sun Sep 03 11:23:34 CDT 2006

Request.ServerVariables("LOGON_USER")

"Kam" <Kam@discussions.microsoft.com> wrote in message
news:D5134F3B-A9B2-4905-A24F-AD5424C6B281@microsoft.com...
> within the intranet, all user are required to login.
> How can I get the User ID and Domain in ASP page?



Re: in intranet, How can I get the userID using ASP? by Kam

Kam
Sun Sep 03 18:38:01 CDT 2006

I had a problem in using it.
I setup up the IIS server with Authentication Methods = Integrated Windows
authentication.

when I use Request.ServerVariables("LOGON_USER"), the result is equal to "
"
The following is my code.
<HTML>
<BODY>
You are <%=Request.ServerVariables("LOGON_USER")%>
</BODY>
</HTML>

How can I fix it? or what should I do before hand?

"Slim" wrote:

> Request.ServerVariables("LOGON_USER")
>
> "Kam" <Kam@discussions.microsoft.com> wrote in message
> news:D5134F3B-A9B2-4905-A24F-AD5424C6B281@microsoft.com...
> > within the intranet, all user are required to login.
> > How can I get the User ID and Domain in ASP page?
>
>
>

Re: in intranet, How can I get the userID using ASP? by Anthony

Anthony
Mon Sep 04 03:44:26 CDT 2006


"Kam" <Kam@discussions.microsoft.com> wrote in message
news:D5134F3B-A9B2-4905-A24F-AD5424C6B281@microsoft.com...
> within the intranet, all user are required to login.
> How can I get the User ID and Domain in ASP page?

What do you use to perform the login?
Is anonymous access enabled?
Are you using window intergrated authentication?




Re: in intranet, How can I get the userID using ASP? by Bob

Bob
Mon Sep 04 07:27:05 CDT 2006

Kam wrote:
> I had a problem in using it.
> I setup up the IIS server with Authentication Methods = Integrated
> Windows authentication.
>
> when I use Request.ServerVariables("LOGON_USER"), the result is equal
> to " "
This usually means that you forgot to uncheck the Anonymous access checkbox.
Anonymous needs to be disabled in order for this to work.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"