I am trying to develop an ISAPI filter to run before stsfltr on a sharepoint portal server. I am basically trying to capture the username and the url from the request but it appears that even with my custom filter higher in the ISAPI list stsfltr is called first. If a request is made for a document within sharepoint (eg http://servername/sites/ACLTest/Shared%20Documents/GRCM263TMA01Q5.txt ) then the url returned is "/_vti_bin/owssvr.dll". What I want to be able to to is capture the original url along with the username. The Username I am trying to capture is the domain user that sharepoint uses for authentication which I am able to capture in the OnAuthComplete event the problem seems to be that stsfltr is altering the url before the OnAuthComplete event is fired. Is this possible? Any help greatly appreciated. TIA Geoff
Set priority of your filter to high (same as the stsfltr) and then order the filters so yours fires first, you will have access to the URL before teh stsflter rewrites it "gc" wrote in message news:%23SE%23hVkJGHA.3064@TK2MSFTNGP10.phx.gbl... >I am trying to develop an ISAPI filter to run before stsfltr on a >sharepoint > portal server. I am basically trying to capture the username and the url > from the request but it appears that even with my custom filter higher in > the ISAPI list stsfltr is called first. If a request is made for a > document > within sharepoint (eg > http://servername/sites/ACLTest/Shared%20Documents/GRCM263TMA01Q5.txt ) > then > the url returned is "/_vti_bin/owssvr.dll". What I want to be able to to > is > capture the original url along with the username. > The Username I am trying to capture is the domain user that sharepoint > uses > for authentication which I am able to capture in the OnAuthComplete event > the problem seems to be that stsfltr is altering the url before the > OnAuthComplete event is fired. > > Is this possible? Any help greatly appreciated. > > TIA > > Geoff > >
I have the same problem. My filter registered SF_NOTIFY_PREPROC_HEADER and seems that WSS filter is always called before mine even though the priority of my filter is the same as WSS filter and is put above the WSS filter in the priority list. Any help is appreciated. -Alan "Robert Ginsburg" wrote in message news:%23bO5GNAKGHA.3728@tk2msftngp13.phx.gbl... > Set priority of your filter to high (same as the stsfltr) and then order the > filters so yours fires first, you will have access to the URL before teh > stsflter rewrites it > "gc" wrote in message > news:%23SE%23hVkJGHA.3064@TK2MSFTNGP10.phx.gbl... > >I am trying to develop an ISAPI filter to run before stsfltr on a > >sharepoint > > portal server. I am basically trying to capture the username and the url > > from the request but it appears that even with my custom filter higher in > > the ISAPI list stsfltr is called first. If a request is made for a > > document > > within sharepoint (eg > > http://servername/sites/ACLTest/Shared%20Documents/GRCM263TMA01Q5.txt ) > > then > > the url returned is "/_vti_bin/owssvr.dll". What I want to be able to to > > is > > capture the original url along with the username. > > The Username I am trying to capture is the domain user that sharepoint > > uses > > for authentication which I am able to capture in the OnAuthComplete event > > the problem seems to be that stsfltr is altering the url before the > > OnAuthComplete event is fired. > > > > Is this possible? Any help greatly appreciated. > > > > TIA > > > > Geoff > > > > > >
I have not seen this problem , our filter registers for several ISAPI filter notifications and as long as the priority is set correctly, IIS honers the ordering. I do know that the IIS 6 metabase gets "confused" quite a bit about filters and status, esepcially when you are debugging and the filter fails to load a lot. I would download the metabase explorer from the IIS sdk, remove all references to both filters , then add them back in the correct order. "Alan Wu" wrote in message news:OUh3eKGSGHA.1948@TK2MSFTNGP09.phx.gbl... >I have the same problem. My filter registered SF_NOTIFY_PREPROC_HEADER and > seems that WSS filter is always called before mine even though the > priority > of my filter is the same as WSS filter and is put above the WSS filter in > the priority list. > > Any help is appreciated. > > -Alan > > "Robert Ginsburg" wrote in message > news:%23bO5GNAKGHA.3728@tk2msftngp13.phx.gbl... >> Set priority of your filter to high (same as the stsfltr) and then order > the >> filters so yours fires first, you will have access to the URL before teh >> stsflter rewrites it >> "gc" wrote in message >> news:%23SE%23hVkJGHA.3064@TK2MSFTNGP10.phx.gbl... >> >I am trying to develop an ISAPI filter to run before stsfltr on a >> >sharepoint >> > portal server. I am basically trying to capture the username and the >> > url >> > from the request but it appears that even with my custom filter higher > in >> > the ISAPI list stsfltr is called first. If a request is made for a >> > document >> > within sharepoint (eg >> > http://servername/sites/ACLTest/Shared%20Documents/GRCM263TMA01Q5.txt ) >> > then >> > the url returned is "/_vti_bin/owssvr.dll". What I want to be able to >> > to >> > is >> > capture the original url along with the username. >> > The Username I am trying to capture is the domain user that sharepoint >> > uses >> > for authentication which I am able to capture in the OnAuthComplete > event >> > the problem seems to be that stsfltr is altering the url before the >> > OnAuthComplete event is fired. >> > >> > Is this possible? Any help greatly appreciated. >> > >> > TIA >> > >> > Geoff >> > >> > >> >> > >
Even with the same website as WSS? Thanks! _Alan "Robert Ginsburg" wrote in message news:O5GCFqOSGHA.5036@TK2MSFTNGP12.phx.gbl... > I have not seen this problem , our filter registers for several ISAPI filter > notifications and as long as the priority is set correctly, IIS honers the > ordering. I do know that the IIS 6 metabase gets "confused" quite a bit > about filters and status, esepcially when you are debugging and the filter > fails to load a lot. I would download the metabase explorer from the IIS > sdk, remove all references to both filters , then add them back in the > correct order. > > "Alan Wu" wrote in message > news:OUh3eKGSGHA.1948@TK2MSFTNGP09.phx.gbl... > >I have the same problem. My filter registered SF_NOTIFY_PREPROC_HEADER and > > seems that WSS filter is always called before mine even though the > > priority > > of my filter is the same as WSS filter and is put above the WSS filter in > > the priority list. > > > > Any help is appreciated. > > > > -Alan > > > > "Robert Ginsburg" wrote in message > > news:%23bO5GNAKGHA.3728@tk2msftngp13.phx.gbl... > >> Set priority of your filter to high (same as the stsfltr) and then order > > the > >> filters so yours fires first, you will have access to the URL before teh > >> stsflter rewrites it > >> "gc" wrote in message > >> news:%23SE%23hVkJGHA.3064@TK2MSFTNGP10.phx.gbl... > >> >I am trying to develop an ISAPI filter to run before stsfltr on a > >> >sharepoint > >> > portal server. I am basically trying to capture the username and the > >> > url > >> > from the request but it appears that even with my custom filter higher > > in > >> > the ISAPI list stsfltr is called first. If a request is made for a > >> > document > >> > within sharepoint (eg > >> > http://servername/sites/ACLTest/Shared%20Documents/GRCM263TMA01Q5.txt ) > >> > then > >> > the url returned is "/_vti_bin/owssvr.dll". What I want to be able to > >> > to > >> > is > >> > capture the original url along with the username. > >> > The Username I am trying to capture is the domain user that sharepoint > >> > uses > >> > for authentication which I am able to capture in the OnAuthComplete > > event > >> > the problem seems to be that stsfltr is altering the url before the > >> > OnAuthComplete event is fired. > >> > > >> > Is this possible? Any help greatly appreciated. > >> > > >> > TIA > >> > > >> > Geoff > >> > > >> > > >> > >> > > > > > >
Yes, our filter runs just fine on top of the stsfltr, and all of the notifications fire in the expected order. "Alan Wu" wrote in message news:uLTIKCTSGHA.1728@TK2MSFTNGP11.phx.gbl... > Even with the same website as WSS? > Thanks! > > _Alan > > > "Robert Ginsburg" wrote in message > news:O5GCFqOSGHA.5036@TK2MSFTNGP12.phx.gbl... >> I have not seen this problem , our filter registers for several ISAPI > filter >> notifications and as long as the priority is set correctly, IIS honers >> the >> ordering. I do know that the IIS 6 metabase gets "confused" quite a bit >> about filters and status, esepcially when you are debugging and the >> filter >> fails to load a lot. I would download the metabase explorer from the IIS >> sdk, remove all references to both filters , then add them back in the >> correct order. >> >> "Alan Wu" wrote in message >> news:OUh3eKGSGHA.1948@TK2MSFTNGP09.phx.gbl... >> >I have the same problem. My filter registered SF_NOTIFY_PREPROC_HEADER > and >> > seems that WSS filter is always called before mine even though the >> > priority >> > of my filter is the same as WSS filter and is put above the WSS filter > in >> > the priority list. >> > >> > Any help is appreciated. >> > >> > -Alan >> > >> > "Robert Ginsburg" wrote in message >> > news:%23bO5GNAKGHA.3728@tk2msftngp13.phx.gbl... >> >> Set priority of your filter to high (same as the stsfltr) and then > order >> > the >> >> filters so yours fires first, you will have access to the URL before > teh >> >> stsflter rewrites it >> >> "gc" wrote in message >> >> news:%23SE%23hVkJGHA.3064@TK2MSFTNGP10.phx.gbl... >> >> >I am trying to develop an ISAPI filter to run before stsfltr on a >> >> >sharepoint >> >> > portal server. I am basically trying to capture the username and the >> >> > url >> >> > from the request but it appears that even with my custom filter > higher >> > in >> >> > the ISAPI list stsfltr is called first. If a request is made for a >> >> > document >> >> > within sharepoint (eg >> >> > > http://servername/sites/ACLTest/Shared%20Documents/GRCM263TMA01Q5.txt ) >> >> > then >> >> > the url returned is "/_vti_bin/owssvr.dll". What I want to be able >> >> > to >> >> > to >> >> > is >> >> > capture the original url along with the username. >> >> > The Username I am trying to capture is the domain user that > sharepoint >> >> > uses >> >> > for authentication which I am able to capture in the OnAuthComplete >> > event >> >> > the problem seems to be that stsfltr is altering the url before the >> >> > OnAuthComplete event is fired. >> >> > >> >> > Is this possible? Any help greatly appreciated. >> >> > >> >> > TIA >> >> > >> >> > Geoff >> >> > >> >> > >> >> >> >> >> > >> > >> >> > >