Groups | Blog | Home
all groups > iis security > february 2004 >

iis security : Rewrite http header


Markus Nagel
2/20/2004 12:51:05 AM
Hello all

I have a SAP ITS running on top of IIS 5 - for an external authentication option with ITS I need to rewrite the http header. What should happen is:
1. Request (from external servlet) requests ITS URL on II
2. IIS function (whatever - that's the bit I need to write) steps in, evaluates http header contents, rewrites http header variable "remote_user" and sends request on its way to originally requested URL (from step 1
3. It must be assured that all requests run through my filter (that is, a forged request header with same remote_user as my step 2, but not originated from my servlet of step 1 mustn't be forwarded to ITS)

What would be the technology of choice to implement this
I'm not quite experienced in MS IIS, but from what I've read my guess is some ISAPI dll (written in C++) would do the trick - right

Could somebody pls
1) Tell me if I'm guessing righ
2) Tell me if there's some other way to accomplish this (C++ is not my favourite programming language
3) If there's no other way point me to some code samples, background technology stuff about writing filter

Your help is greatly appreciated

Cheers

Tom Kaminski [MVP]
2/20/2004 8:40:33 AM
[quoted text, click to view]
option with ITS I need to rewrite the http header. What should happen is:

Please don't multi-post. Answered in .iis ...

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


AddThis Social Bookmark Button