Re: Please help Passing Credentials
- From: "JOS" <JeremiahOSullivan@xxxxxxxxx>
- Date: 21 Nov 2006 14:32:39 -0800
Hi Joe,
Thanks for the tip, I am trying to wade through all the info on google
now!
I installed the tool from blunck.info and authentication seems o.k it
returns negotiate for all requests.
However I still get the 401 error when constructing the HttpWebRequest
(see code below)
What should I be looking for next?
Thanks in advance
Jerry
HttpWebRequest Req = (HttpWebRequest)
WebRequest.Create(http://server2/MyWebApp/ExternalXMLSubmit.asp);
Req.Credentials = System.Net.CredentialCache.DefaultCredentials;
Req.ContentType="text/xml;charset=UTF-8";
Req.Method="POST";
Req.ContentLength = byteArray.Length;
Stream newStream = Req.GetRequestStream();
newStream.Write(byteArray,0,byteArray.Length);
newStream.Close();
//GetResponse
HttpWebResponse response = (HttpWebResponse)Req.GetResponse();
StreamReader responseStream = new
StreamReader(response.GetResponseStream());
string Res = processResponse(responseStream.ReadToEnd());
return Res;
Joe Kaplan wrote:
Double hops are solved by implementing Kerberos delegation. I'd suggest
doing some reading on that. There are lots of good papers on the various MS
websites explaining it and I've answered the question in detail on this and
other newsgroups too. In fact, there is another thread that was just
started a few days ago that already launches into the details. Google is
your friend...
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"JOS" <JeremiahOSullivan@xxxxxxxxx> wrote in message
news:1164137895.231827.206100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am having problems passing Windows credentials to a HTTPRequest
object using ASP.NET 1.1
Here is my set up
Server 1
* ASP.NET 1.1 application
* Integrated Authentication Security
* <identity impersonate = true>
Server 2
* ASP Page
* Integrated Autentication Security
I am creating a HTTPRequest object in Server 1 and passing credentials
using System.NET.DefaultCredentials. The HTTPRequest object is calling
an ASP page on server 2 to submit some XML
If I log on to Server1 as a windows user, browse to the web application
and submit the page it works ok
If I log on to Server 2 as the same windows user, browse to the web
application on Server 1 and submit the page I get a 401 access denied
error
It looks like I am have problems with the double hop of the
credentials.
How can I get this to work, I have basic knowledge of Windows
networking so the simpler the better:)
Any help gratefully recevied
.
- Follow-Ups:
- Re: Please help Passing Credentials
- From: Joe Kaplan
- Re: Please help Passing Credentials
- References:
- Please help Passing Credentials
- From: JOS
- Re: Please help Passing Credentials
- From: Joe Kaplan
- Please help Passing Credentials
- Prev by Date: Re: Please help Passing Credentials
- Next by Date: Access to key container made by administrator IN ASPNET 1.1
- Previous by thread: Re: Please help Passing Credentials
- Next by thread: Re: Please help Passing Credentials
- Index(es):
Relevant Pages
|
|