Re: want to ignore/bypass WSE2 policy for local requests...

From: Tim Mackey (tim_at_scootasp.net)
Date: 11/03/04


Date: Wed, 3 Nov 2004 17:11:29 -0000

hi Julie,
thanks for the reply.
i thought that since the endpoint uri's are case-sensitive, it would work to configure 2 different policies, one for lower-case and one for upper-case. do i understand it right that the lowercase one should apply to any clients that have a reference to it with that case? and then any other clients (i.e. my web pages) with a reference to the upper-case version, should use the different policy.

would it be possible in my custom security token manager to check somehow if the request is coming from the server itself and then accept the request somehow?

thanks
tim

67d0ebfec70e8db3
  "Julie Lerman" <jlermanATNOSPAMPLEASEthedatafarm.com> wrote in message news:%23Tw5wxbwEHA.1988@TK2MSFTNGP12.phx.gbl...
  Tim-
  Are all of these really pointing to the same webserver? I'm sure you can't trick it like that! <g>

  I have no idea if it's possible to base an endpoint policy on it's start point - wouldn't that be cool.

  But unless someone can give you a cool solution that I don't know about (which is wholly possible), you might just have to have separate web services.

  julie
    "Tim Mackey" <tim@scootasp.net> wrote in message news:2uq7ctF2doraaU1@uni-berlin.de...
    hi, i have a wse2 web service up and running and it serves lots of windows clients, with a custom username token manager. great.

    i now have some new webforms on the same server that wish to use the web services. the problem is that the webforms can't obey the policy rules because it doesn't know at runtime any user account info, i want to work around this. i don't want to hard code in a 'SYSTEM' user + password only for use with the web service because someone could open the dll in notepad and use those credentials to abuse the web service.

    i tried to set up 2 different policies for the same web service, with the difference being the address used to access it. using the address: http://localhost/WinDB.asmx for the web forms, and a blank policy in policyCache.config. for the winclients then, they use the normal http://shuttle/WinDB.asmx adress with the #username-token-signed policy or whatever. it doesn't work though. requests made through the local address get a "Server was unable to process request. --> The message must contain a wsa:To header" error.

    policyCache.config extract:
       <endpoint uri="http://localhost/WinDB.asmx">
          <defaultOperation>
            <request policy="" />
            <response policy="" />
            <fault policy="" />
          </defaultOperation>
        </endpoint>
        <endpoint uri="http://shuttle/winDB.asmx">
          <defaultOperation>
            <request policy="#username-token-signed" />
            <response policy="" />
            <fault policy="" />
          </defaultOperation>
        </endpoint>
       <policies xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsp:Policy wsu:Id="username-token-signed" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wssp="http://schemas.xmlsoap.org/ws/2002/12/secext">
          <wsp:MessagePredicate wsp:Usage="wsp:Required" Dialect="http://schemas.xmlsoap.org/2002/12/wsse#part">
                wsp:Body() wsp:Header(wsa:To) wsp:Header(wsa:Action) wsp:Header(wsa:MessageID) wse:Timestamp()
          
    i also tried using the 127.0.0.1 IP address in the policyCache but it didn't change anything.

    i really appreciate any suggestions anyone might have.
    tim

    \\ email: tim at mackey dot ie //
    \\ blog: http://tim.mackey.ie //
    67d0ebfec70e8db3



Relevant Pages

  • Re: want to ignore/bypass WSE2 policy for local requests...
    ... would it be possible in my custom security token manager to check somehow if the request is coming from the server itself and then accept the request somehow? ... <endpoint uri="http://localhost/WinDB.asmx "> ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Threadpool thread termination.
    ... So, if it receive a request to run for 25 times something that will stuck, ... be able to take more request to dispatch as it will wait for a thread to ... Am i able to identify these threads and somehow stop them so the ThreadPool ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Using make
    ... Somehow I failed to address the OP's specific question. ... Yes it tries to match the request via implicit rules. ... beget .o files which beget executables. ... Senior Software Engineer ...
    (comp.unix.programmer)
  • List Attachments and Metadata
    ... I have a request from a user that wants to be able to take a normal ... list with attachments turned on and allowed and somehow provide ... metadata for the attachments such as Marketing Material, Proposals, ...
    (microsoft.public.sharepoint.portalserver)
  • Re: How do I turn off the voice announcing "new mails"?
    ... and new "mails" every time I open outlook 2003? ... somehow, without my knowledge or request, and I want desperately to ...
    (microsoft.public.outlook.installation)