Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

REMOTE_USER Server Variable

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Multiple IIS instances on one machine?  
Author Message
user2217

External


Since: Sep 28, 2004
Posts: 1



(Msg. 1) Posted: Tue Sep 28, 2004 8:53 am
Post subject: REMOTE_USER Server Variable
Archived from groups: microsoft>public>inetserver>iis (more info?)

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]

Thanks!

 >> Stay informed about: REMOTE_USER Server Variable 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Tue Sep 28, 2004 1:05 pm
Post subject: Re: REMOTE_USER Server Variable [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Russ G." <Russ G. DeleteThis @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 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 3) Posted: Tue Sep 28, 2004 11:15 pm
Post subject: Re: REMOTE_USER Server Variable [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Custom server variable - I'm trying to create a custom server variable. Is there a way to do this? Maybe as an ISAPI filter? I know there are MUCH better/easier ways to store session data ... However, I'm dealing with a legacy application that relies on this. Thanks in..

Server variable can't be modified during request? - I recently had a problem of not being able to connect to the web server. I found out the issue was because of installing PHP. I've since uninstalled PHP and manually configured it from the zip file. Now everything except aspx pages are loading fine. ..

PATH_TRANSLATED / SCRIPT_NAME server variable 404 issue. - Please Help. Nobody seems to have posted a solution for this yet. System: Windows 2000 (unknown if it is Pro, Server or Advanced Server) All known service packs are installed. Symptoms: Accessing a URL from an asp.net application such as..

Session Variable Loss with IIS 6.0 Windows 2003 Server - OVERVIEW: Inexplicable random loss of session variables. No hard correlations can be seen with worker process recycling, modifications to worker process settings, or endless beating of my head against the wall. SETUP: Windows 2003 Server, IIS 6.0, P4..

Session variable and IE - Hi all, sorry, not sure which group this belongs too... I have a Win2k server running IIS on an Intranet. All clients are win2k using IE. My site uses a database for username authentication. On authentication the user's ID number is used as session..
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]