Re: Proxy auth with default credentials



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?



.



Relevant Pages

  • Windows App to SQL Reporting Web service - DefaultCredentials
    ... I am calling SQL reporting web service from vb.net windows application. ... I set the credentials to defaultcredentials. ... use Windows Integrated authentication and no anonymous access. ...
    (microsoft.public.dotnet.security)
  • DownloadFile and Credentials
    ... I am using DownloadFile() on a C# web app to download a file to a ... When I set the WebClient credentials to the DefaultCredentials, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Send Credentials to WebBrowser control
    ... How would I send credentials to the WebBrowser control? ... the credentials, either from the DefaultCredentials, or I create ... Credentials cached from a username, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sharing/Forwarding website credentials programatically
    ... What you are wanting is not really delegation of credentials from the portal ... can directly contact that server). ... authentication over SSL against a standard Active Directory account. ... essentially in the request-headers or URI itself. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Sharing/Forwarding website credentials programatically
    ... authentication over SSL against a standard Active Directory account. ... credentials to the application server, ... was essentialy how to encode those links so that the credentials were passed ... essentially in the request-headers or URI itself. ...
    (microsoft.public.inetserver.iis.security)