Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

ISAPI filter to set REMOTE_USER

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
ISAPI Filter in VB6 - Is it possible to write an ISAPI filter in VB6 (or VB.net for that matter). If so, how? Please? TIA, Owen

ISAPI filter - Hi! We are doing some to find new ways to develop out product in a couple of different areas. One way to go includes writing an ISAPI filter that before the ASP code gets parsed. The reason for doing this is that we want to handle..

IIS 6.0: How to add isapi filter? - In IIS 5.0, adding an isapi filter was straight forward via ISM Admin tool using property pages. I tried the same steps in IIS 6.0, however I can't get the filter to load. Is there something that needs to be else where: 1. Web Service..

ISAPI Filter - Hello! Could anybody suggest me a good IIS 6 tool to find ISAPI filter and optimize IIS? Thank You! James

ISAPI Filter monitoring - Hey All, using windown 2000 server with iis 5.0 installed used a dll as ISAPI Filter on one of my website does someone know any tool or program, that i can chek the dll ISAPI filter, as memory usage, cpu, etc... Thanks you all stiv.
Author Message
if_you_want_my

External


Since: Sep 19, 2003
Posts: 11



(Msg. 1) Posted: Mon Sep 22, 2003 9:05 pm
Post subject: ISAPI filter to set REMOTE_USER
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,

Background (highly summarized):

I have a scenario where:

* I have a proxy server in front of IIS
* I authenticate at that proxy server
* That proxy server injects a generic authorization header into the forward
stream to IIS
* I have both Basic Authentication and Integrated Windows authentication
activated on IIS
* IIS authenticates using the authorization header and sets REMOTE_USER
* But, that generic user is the wrong value

Summary:

Is it possible to write an ISAPI filter that will modify REMOTE_USER after
it has been set by NTLM authentication? I have the desired user value in
another variable, so the logic for the ISAPI filter is:

if PROXY_USER != blank then REMOTE_USER = PROXY_USER

My concern is that REMOTE_USER is "special" and cannot reliably be changed
in this scenario, so that is what I'm trying to confirm.

And, of course, if you have any code that modifies REMOTE_USER with the
value from another variable, I would really appreciate any sample code.

Cheers,
Scott

 >> Stay informed about: ISAPI filter to set REMOTE_USER 
Back to top
Login to vote
wadeh

External


Since: Sep 03, 2003
Posts: 115



(Msg. 2) Posted: Mon Sep 22, 2003 9:05 pm
Post subject: Re: ISAPI filter to set REMOTE_USER [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Scott,

The REMOTE_USER server variable is set by IIS authentication, and a filter
cannot change it.

If you are using IIS 6, then you can write a wildcard script map that uses
HSE_REQ_EXEC_URL, and it can directly set REMOTE_USER for the child request.

Thank you,
-Wade A. Hilmo,
-Microsoft

PS: If you have any other questions on this, or any other, ISAPI issue,
please feel free to use the
microsoft.public.platformsdk.internet.server.isapi-dev newsgroup, which
exists for this purpose.

"Scott" <if_you_want_my_email_ask_in_a_post.RemoveThis@please.com> wrote in message
news:e#f8rBOgDHA.1088@TK2MSFTNGP10.phx.gbl...
 > Hi,
 >
 > Background (highly summarized):
 >
 > I have a scenario where:
 >
 > * I have a proxy server in front of IIS
 > * I authenticate at that proxy server
 > * That proxy server injects a generic authorization header into the
forward
 > stream to IIS
 > * I have both Basic Authentication and Integrated Windows authentication
 > activated on IIS
 > * IIS authenticates using the authorization header and sets REMOTE_USER
 > * But, that generic user is the wrong value
 >
 > Summary:
 >
 > Is it possible to write an ISAPI filter that will modify REMOTE_USER after
 > it has been set by NTLM authentication? I have the desired user value in
 > another variable, so the logic for the ISAPI filter is:
 >
 > if PROXY_USER != blank then REMOTE_USER = PROXY_USER
 >
 > My concern is that REMOTE_USER is "special" and cannot reliably be changed
 > in this scenario, so that is what I'm trying to confirm.
 >
 > And, of course, if you have any code that modifies REMOTE_USER with the
 > value from another variable, I would really appreciate any sample code.
 >
 > Cheers,
 > Scott
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ISAPI filter to set REMOTE_USER 
Back to top
Login to vote
Display posts from previous:   
   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 ]