Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP GetUserName() :AnonAccess disabled but WITHOUT double login prompt

Status
Not open for further replies.

KirbyWallace

Programmer
Dec 22, 2008
65
US
Tried to pack as much as possible in the title. ;-)

I can disable website anonymous access, and cause IIS/IE to obtain current user name in request.servervariables(AUTH_USER). No prob.

The problem is that when the user hits this site, they are prompted to login using their windows name and password.

THIS IS ANNOYING TO USERS because they've already logged in. Common question to me: "Why the heck am I being asked to login again, when I just logged in five minutes ago?"

I need the website/page to simply provide me with the Windows username that they are ALREADY logged in with. The "double login" thing needs to go away.



I've gone the route of changing internet explorer security options to "Auto Login with Current name/pw), and adding site to "local intranet sites", but that still requires disabling anon access (and thus the annoying prompt). And on top of that, I'd have to make this change to hundreds and hundreds of machines.

Most "ldap query" examples (er, all of them) show how to query ldap for a username that is already known.


Does anyone see my dilemma and have some input?

In it's simplest form, all I want is to keep anonymous access enabled, but simply get the windows name of the user currently access the page.


Thanks to all!

Kirby
 
is this on an intranet? because if it is you could add the machine/user names to the web server, and that should remove the login issues

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
" I always think outside the 'box', because I'm never in the 'loop' " - DreX 2005
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top