Solved

Windows Username not being displayed on IIS 6.0

Posted on 2013-01-25
10
164 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:cbbisu
  • 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:cbbisu
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:cbbisu
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:cbbisu
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:cbbisu
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:cbbisu
ID: 38827644
Just the last comment did the trick
0
 
LVL 41

Expert Comment

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

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

773 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