...

View Full Version : login user name error



anitha2324
03-01-2007, 04:39 PM
i am trying to get the login user name but i am getting error

my code is


<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>

<P>&nbsp;</P>

<% Response.Write Request.ServerVariables("LOGON_USER")
Response.Write Request.ServerVariables("AUTH_USER") %>

</BODY>
</HTML>



the error is like this

Error Type:
Microsoft VBScript compilation (0x800A0408)
Invalid character
/survey/testusername.asp, line 11, column 51


by the way if i comment the second statement (Response.Write Request.ServerVariables("AUTH_USER"))

i ll not get error and also nothing will be displayed in the browser.

nikkiH
03-01-2007, 08:45 PM
Are you running this off localhost?

SSJ
03-02-2007, 06:50 AM
This may help you..

http://www.thescripts.com/forum/thread54966.html

-SSJ

anitha2324
03-04-2007, 08:44 PM
Are you running this off localhost?

no am not running on local host , am accessing my asp page ( my asp page in a windows 2000 server )

and am one of the clients to this server


am accessing like this

http://172.31.31.50/test/usernametest.asp

where 172.31.31.50 is my server ip address

nikkiH
03-05-2007, 05:11 PM
Okay, and that machine is set up for authentication? And the web site is set up in IIS to use that authentication?

anitha2324
03-07-2007, 01:17 PM
Okay, and that machine is set up for authentication? And the web site is set up in IIS to use that authentication?

thanks alot for your reply , but what i have to do now , shall i disable the authetication , but am able to enter the asp pages without any authenication ,

which authentication you mean , ??????????????? and how to disable that ????

nikkiH
03-07-2007, 03:35 PM
AUTH_USER is authentication. That's what you're doing here.
This variable is mostly meant for intranet applications, as it uses integrated windows authentication. Most home users do not log into a network, domain, or even their computer.
So, I'll assume this is an intranet app.

Your site must not be using anonymous access (IIS) for this to work (turn it off if it is on).
IIS must be set to use Integrated Windows Authentication (turn it on if it is off).
Internet Explorer must be set to see the intranet site as safe or it won't send the credentials. Add the site to Trusted if it is not there.

anitha2324
03-10-2007, 08:18 AM
AUTH_USER is authentication. That's what you're doing here.
This variable is mostly meant for intranet applications, as it uses integrated windows authentication. Most home users do not log into a network, domain, or even their computer.
So, I'll assume this is an intranet app.

Your site must not be using anonymous access (IIS) for this to work (turn it off if it is on).
IIS must be set to use Integrated Windows Authentication (turn it on if it is off).
Internet Explorer must be set to see the intranet site as safe or it won't send the credentials. Add the site to Trusted if it is not there.






by the way i have disabled the Anonymous Access in the IIS
but it makes problem to me because the dllhost.exe has been increased and my cpu usage reached 100 and this leads to hanging and slowing of the system , ( but i can get the login user) and also the users will be asked everytime for authentication when they access the pages.

and if i disabled the Anonymous access in the IIS, the performace will be good but i ll not get the login username

Please help me in that

nikkiH
03-12-2007, 04:15 PM
Is this an intranet site?
Machine/server specs?

anitha2324
03-16-2007, 10:22 AM
Is this an intranet site?
Machine/server specs?

yes it is intranet site ,
the specification of my server
p-4 3000 mhz
ram 512
os is windows 2000 server ,
i need to get the network login user name by anyway ,

nikkiH
03-16-2007, 06:15 PM
Hmmm...
You have Integrated Windows Authentication checked, right?
This is IIS 6?

anitha2324
03-19-2007, 10:05 PM
Yes it is checked
am using IIS 5
please reply me with detailed anwer,thanking your cooperation

Hmmm...
You have Integrated Windows Authentication checked, right?
This is IIS 6?

anitha2324
03-25-2007, 10:44 AM
Till Now , I Did Not Get The Answer For My Questions,

Please Any One Knows How To Solve My Problem And Help Me, Very Very Urgent

degsy
04-18-2007, 04:31 PM
The error is because you have an invalid character in the variable.

What happens if you use Server.HTMLEncode around the variable?

if that doesn't help then it is something to do with your computer or account name that you are trying to authenticate.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum