It is possible for an ISAPI Filter performing custom authentication to
change this behavior. You can confirm by removing all filters, restarting
IIS, and see if it gets fixed.
If this is the case, the only work arounds are:
1. not use that ISAPI Filter at all
2. change its code such that it does not apply in your URL namespace.
3. configure it to run on a per-site basis such that it does not apply in
your URL namespace.
All options depend on the web server admin.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:cjbq9c$9211@kcweb01.netnews.att.com...
"Russ G." <Russ G..TakeThisOut@discussions.microsoft.com> wrote in message
news:1BBA3531-2530-4FDE-ABCE-D78076C93B28@microsoft.com...
> Using IIS 5.0.
>
> I'm working with my web admin to try to fix this, but he doesn't seem to
> know how to do it.
>
> My problem is that when I make a call:
>
> Request.ServerVariables("REMOTE_USER")
>
> I am not getting any value back.
> .
> I have been able to use this on several other web sites/servers here
> without
> any problem.
>
> For the web I'm developing, I go to into IIS setup and I go the Directory
> Security tab. I open up the Authentication Methods dialog and disable
> Anonymous access, enable Basic authentication, and enable Integrated
> Windows
> authentication.
> This is similar to setting on other web servers where I am getting the
> values I want, but it is unsuccessful here.
>
> Does anyone know of any other settings I should be looking at that would
> keep REMOTE_USER from showing up? Would the service have to be
> stopped/restarted for this to work? I'm out of ideas here...
>
> Also, I want to be able to get this information without forcing visitors
> to
> the website to log in through a dialog box. [I know this works because I
> few
> other webs that I can manage that do this]
I always use Request.ServerVariables("LOGON_USER"):
<a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/servervariables.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissd...is/serv</a>
Here's how to logon w/o a prompt:
<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;en-us;258063&Product=ie600" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;en-us;258063&Product=ie600</a>
--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a>
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.iisfaq.com/" target="_blank">http://www.iisfaq.com/</a>
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://www.tryiis.com" target="_blank">http://www.tryiis.com</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: REMOTE_USER Server Variable