Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Windows Username not being displayed on IIS 6.0

Posted on 2013-01-25
10
165 Views
Last Modified: 2013-01-28
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
0
Comment
Question by:CBB
  • 5
  • 5
10 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 38819548
you have <allow users="*"/>

instead  deny anonymous access to your site by adding:

<deny users="?"/>
0
 

Author Comment

by:CBB
ID: 38819572
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
 
LVL 41

Expert Comment

by:guru_sami
ID: 38819632
How are you accessing the username?
Can you turn off impersonation by setting it to false.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:CBB
ID: 38819681
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
 

Author Comment

by:CBB
ID: 38819714
sorry in the visual basic 2005 code I have
 dim logon_user string
 logon_user - system.web.httpcontext.current.user.identity.name

thanks
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 38819741
Hmmm...I am not sure...can you try: WindowsIdentity.GetCurrent().Name
0
 

Author Closing Comment

by:CBB
ID: 38827599
thanks very much
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 38827616
Glad that helped. So did you had to do any other modifications or just the last comment did the trick?
0
 

Author Comment

by:CBB
ID: 38827644
Just the last comment did the trick
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 38827654
Cool...thanks.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question