-----Original Message-----
Hi Scott,
Are these CAO objects?
If so add machineName to your server channel.
<channel ref="http" machineName="machine name" />
For CAO the server send back the objref to the client and if it contains
the server IP then the client will not be able to reach the IP directly.
But if you specify machineName then the objref contains the server name
specified indtead of the IP. Make sure you specify the machine name that
client can resolve.
thanks,
liju
--------------------
| Content-Class: urn:content-classes:message
| From: "Scott Simms" <
[email protected]>
| Sender: "Scott Simms" <
[email protected]>
| References: <
[email protected]>
<jJU##
[email protected]>
| Subject: RE: Remoting and Proxy Authentication
| Date: Mon, 3 Nov 2003 19:54:32 -0800
| Lines: 110
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOih1riZdzm/FJ9Snq7CHC+/hQw2A==
| Newsgroups: microsoft.public.dotnet.framework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:57816
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.framework
|
| Hi Liju,
| Yes we are doing this now to supply IIS with credentials
| for basic authentication, this is not however used for
| proxy authentication.
| I believe that the problem is with the proxy credentials
| not being re-sent. From my last post (below) you can see
| that the proxy accepts the credentials (at 4.) but when we
| re-send the request to satify IIS (at 6.) the proxy will
| not let the request through.
| 1. Clients sends HTTP post to server via proxy
| 2. Proxy replys '407' (expected)
| 3. Client sends HTTP post with proxy credentials
| 4. Proxy passes on request to server
| 5. Server replys '401' (expected)
| 6. Client sends HTTP post with server credentials
| 7. Client receives an error.
| NB : The proxy credentials are set at the HTTP channel
| level and not for each request.
| Thanks,
| Scott Simms
| >-----Original Message-----
| >
| >
| >Can you try this
| >
| >
| >set the properties for the Remote object as below
| >
| >IDictionary prop =
| ChannelServices.GetChannelSinkProperties(foo);
| >
| >// this picks up the current credentials
| >
| >prop["credentials"] = CredentialCache.DefaultCredentials;
| >
| >
| >
| >// this allows your to specify domain/username/password
| >prop["username"] = "test";
| >prop["password"] = "password";
| >prop["domain"] = "myDomain";
| >
| >
| >
| >// invoke method
| >// (credentials will be sent when the server sends a
| challenge)
| >
| >foo.DoSomething();
| >
| >
| >thanks,
| >liju
| >
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Scott Simms" <
[email protected]>
| >| Sender: "Scott Simms" <
[email protected]>
| >| Subject: Remoting and Proxy Authentication
| >| Date: Mon, 13 Oct 2003 18:44:06 -0700
| >| Lines: 15
| >| Message-ID: <
[email protected]>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >| Thread-Index: AcOR9Ke2rC1VtGUzR2SZ/1ZoMHVNPA==
| >| Newsgroups: microsoft.public.dotnet.framework
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework:56063
| >| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| >| X-Tomcat-NG: microsoft.public.dotnet.framework
| >|
| >| Can you please describe the technique to access a .Net
| >| remote object (remoting) via an authenticating proxy?
| >|
| >| I have used the "ProxyName" and "ProxyPort" HTTP
| channel
| >| properties successfully but I can't see how to pass
| >| credentials to a Proxy via remoting.
| >|
| >| At the moment I get the following error :
| >| "Proxy Authentication Required."
| >|
| >| PS : dotnet.framework.remoting appears to be unavailable
| >|
| >| Thanks,
| >|
| >| Scott Simms.
| >|
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >You assume all risk for your use.
| >
| >©2001 Microsoft Corporation. All rights reserved.
| >
| >.
| >
|
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
©2001 Microsoft Corporation. All rights reserved.
.