Windows Username not being displayed on IIS 6.0

Created a website on Visual Basic 2005 and I run it on the local PC01
http://localhost:57639/telephone/phone.aspx and it displays the windows username
Create a virtual directory on windows server 2003 service pack 2 in IIS 6.0
then using visual basic 2005 menu option -> build -> Publish Web Site
When I run the following url on any other client PC
servername/telephone/phone.aspx the windows username is not being displayed

I am attaching the following the web.config file
I am attaching a screen of the IIS 6.0 directory security

thanks so much for all your assistance
IIS6.0.png
Web.config
CBBNet AdminAsked:
Who is Participating?
 
guru_samiConnect With a Mentor Commented:
Hmmm...I am not sure...can you try: WindowsIdentity.GetCurrent().Name
0
 
guru_samiCommented:
you have <allow users="*"/>

instead  deny anonymous access to your site by adding:

<deny users="?"/>
0
 
CBBNet AdminAuthor Commented:
hi Guru_sami

 I have made the changes and a username is now being displayed but I am getting the user that is logon on the server and not the client windows user

thanks
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
guru_samiCommented:
How are you accessing the username?
Can you turn off impersonation by setting it to false.
0
 
CBBNet AdminAuthor Commented:
hi

 I changed  set identity impersonate="false" in the web.config
 and still everyone is getting the username that is logon on the server.

thanks
0
 
CBBNet AdminAuthor Commented:
sorry in the visual basic 2005 code I have
 dim logon_user string
 logon_user - system.web.httpcontext.current.user.identity.name

thanks
0
 
CBBNet AdminAuthor Commented:
thanks very much
0
 
guru_samiCommented:
Glad that helped. So did you had to do any other modifications or just the last comment did the trick?
0
 
CBBNet AdminAuthor Commented:
Just the last comment did the trick
0
 
guru_samiCommented:
Cool...thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.