Re: HttpWebRequest and Impersonate and Not Authorized 401

From: Jonathan Lyall (jonathan.lyall@xtra.co.nz)
Date: 06/10/02


From: "Jonathan Lyall" <jonathan.lyall@xtra.co.nz>
Date: Mon, 10 Jun 2002 22:25:23 +1200


Did you find a solution - I have found exactly the same behaviour but using
webservice.htc.

Cheers

JL
"Luis Azedo" <luis.azedo@allianz.pt> wrote in message
news:eTuquqm#BHA.1692@tkmsftngp05...
Hi,

i'm having a strange behavior.

client makes a request to server A that makes a webrequest (WebDav Search)
to server B

client -> server A -> server B

server A - ASP.NET
processmodeluser = SYSTEM
Trusted for Delegation = yes
Autentication Windows
Impersonate True

server B - Sharepoint
Trusted for Delegation = yes
Autentication Windows

this works when the client and server A are on the same machine (developing)
but not when the request comes from another machine.The Impersonate doesn't
seem to work, i'm getting 401 not authorized from server B. Checked the IIS
Log on server and the Impersonated User is not sent.

code sample
WebRequest Req = (System.Net.HttpWebRequest) HttpWebRequest.Create(Uri);
Req.Credentials = System.Net.CredentialCache.DefaultCredentials;
Req.Method = "SEARCH";
WebResponse result = Req.GetResponse();

any ideas ?

Thanks



Relevant Pages

  • Re: breaking the model
    ... > The forms data then is in the Request object. ... HTTP Request; in this case, the form POST Request from the Page. ... client and server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Resolving record with enumerated type
    ... In a CPU BFM package, ... because data goes in two directions (request from the ... from the server to the client), you'll need some way to orchestrate ...
    (comp.lang.vhdl)
  • Re: NadaNet file server coming soon...
    ... Applesoft BASIC running under ProDOS, in less than 300 lines, ... After each command is completed by the server, ... client the result code, the AUX TYPE, ... forgoes queueing (since one client can't have more than one request ...
    (comp.sys.apple2)
  • Re: Kerberos with Windows Integrated authentication
    ... behaviour if your Web server is in the client broweser's Internet zone. ... referencing it by computer name rather than FQDN), the browser will request ... Obviously, if you want to use Kerberos for authentication, you will either ...
    (microsoft.public.windows.server.security)
  • Re: Performance Issue with Runtime Image
    ... >> the client, closes the connection, then dies. ... request before even accepting the next incoming connection. ... The client program is unaffected so presumably the server is ...
    (comp.lang.smalltalk.dolphin)