Re: Proxy auth with default credentials
- From: "Joe Kaplan \(MVP - ADSI\)" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 10:59:21 -0600
I don't think DefaultCredentials ever shows you who the person is. It is
just some kind of a wrapper around an internal handle. I could be wrong
about that.
The issue is that you can't get the right kind of NTLM credentials for the
user if you authenticated them with IWA on the front end. You would need to
prompt the user for their plaintext credentials.
Is it possible for you to use a service account's credentials to get through
the proxy server authentication? You would be building a NetworkCredential
with explicit credentials, but it would not require getting the user's
plaintext credentials.
Joe K.
<kristan.mcdonald@xxxxxxxxxxxxxx> wrote in message
news:1141056420.456113.297410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Done a bit more digging and it may not be the auth type that's the
problem, I've tried doing:
System.Net.NetworkCredential myCred =
System.Net.CredentialCache.DefaultCredentials.GetCredential(new Uri(
"http://myproxyserver" ), "NTLM");
and if I examine the contents of myCred, everything is blank - no
matter what URI I specify, it comes back with blank username, blank
domain etc. If I look at User.Identity it's got it running as the right
person, am I being really thick as to what DefaultCredentials should
allow me to do? Is it maybe just not populated when you're
impersonating and I have to do something extra to make it work?
.
- Follow-Ups:
- Re: Proxy auth with default credentials
- From: kristan.mcdonald@xxxxxxxxxxxxxx
- Re: Proxy auth with default credentials
- References:
- Proxy auth with default credentials
- From: kristan.mcdonald@xxxxxxxxxxxxxx
- Re: Proxy auth with default credentials
- From: Joe Kaplan \(MVP - ADSI\)
- Re: Proxy auth with default credentials
- From: kristan.mcdonald@xxxxxxxxxxxxxx
- Re: Proxy auth with default credentials
- From: Joe Kaplan \(MVP - ADSI\)
- Re: Proxy auth with default credentials
- From: kristan.mcdonald@xxxxxxxxxxxxxx
- Re: Proxy auth with default credentials
- From: kristan.mcdonald@xxxxxxxxxxxxxx
- Proxy auth with default credentials
- Prev by Date: Re: Proxy auth with default credentials
- Next by Date: Re: Proxy auth with default credentials
- Previous by thread: Re: Proxy auth with default credentials
- Next by thread: Re: Proxy auth with default credentials
- Index(es):
Relevant Pages
|
|