954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Windows Authentication with AD

Hi,
I developed an Intranet website using ASP.NET/VB.NET 2005 where I need to retrieve the Windows Username. I am using Windows Authentication through Active Directory. This works fine when I create a Virtual Directory within the Default Web Site, and the IP address is Unassigned. The User is not challenged, and the Windows Username is retrieved using an Active Directory WebService and getting the UserName with Request.ServerVariables("Auth_user"). However, when I create a New Website outside of the Default Web Site, with an Assigned IP address, the user is always challenged and forced to enter their Username and Password. Does anyone know why the User is being challenged when running the Website outside of the Default Website? Any ideas on how to configure the Website Properties, or modifications needed to the web.config, to allow the User to enter the website without being challenged, with the Windows Username being passed?


Thanks,
Mike

MikeF77
Newbie Poster
1 post since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

Mike, if you solve this, pls advise. I am going to try replicating your situation this weekend to see if I can come up with any cause or solution. I am working on a project that will likely experience the same exact issue...

ericstenson
Posting Whiz in Training
Team Colleague
295 posts since Dec 2007
Reputation Points: 14
Solved Threads: 29
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You