Re: HttpWebRequest and Impersonate and Not Authorized 401
From: Jonathan Lyall (jonathan.lyall@xtra.co.nz)
Date: 06/10/02
- Next message: Bob: "Locking users into home directory / Change trust level ?"
- Previous message: Guenther Ruehmann: "Get Client Username with asp.net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Bob: "Locking users into home directory / Change trust level ?"
- Previous message: Guenther Ruehmann: "Get Client Username with asp.net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|