Re: Default credentials

From: Wild Wind (nobody_at_blackhole.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 01:43:14 +0100

Hello Hernan,

Thanks for your answer.

Is there a way of knowing whether the dialog box that
comes up on my client site requires NTLM or Basic authentication?

As I said, the dialog comes up whichever site you visit using
a web browser - I assume it must be something they have set up
on their firewall.

Will it matter if I just use "Negotiate"?

Also, if I add several NetworkCredential objects to my cache, and add
this cache to my proxy, will it use all of the credentials in the
cache to authenticate until one succeeds?

Thanks in advance,

Akin

"Hernan de Lahitte" <hernan@lagash.com> wrote in message
news:%23iTAeRgZEHA.212@TK2MSFTNGP12.phx.gbl...
> If you need to pass certain credentials to your proxy WS class, just use
> something like this:
>
> CredentialCache cache = new CredentialCache();
> cache.Add( new Uri( WSProxy.Url ), "Negotiate", new NetworkCredentials(
> "youruser", "yourpwd", "yourdomain") );
> WSProxy.Credentials = cache;
>
> If you use NTLM auth in IIS, "Negotiate" will be fine. If you use "Basic"
> auth instead, just put "Basic" where it says "negotiate".
> --
> Hernan de Lahitte
> Lagash Systems S.A.
> http://weblogs.asp.net/hernandl
>
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> "Wild Wind" <nobody@blackhole.com> wrote in message
> news:2l7h6qF9ch05U1@uni-berlin.de...
> > Hello,
> >
> > I have an application which calls a web service across the
> > Internet from a client machine.
> >
> > The site that I have deployed the application to is such that
> > to browse the Internet using a web browser, a person needs to
> > do the following:
> >
> > (a) ensure that a proxy server address is specified;
> >
> > (b) enter a username and password into an authentication dialog
> > that comes up whenever they start up the web browser.
> >
> > I am finding that as a result, I cannot connect at all to the
> > Internet directly.
> >
> >
> > I have deployed the same application on other sites that use
> > a proxy server to connect to the Internet by specifying the
> > proxy server address in my config file and using this address
> > to create a proxy for the web service using the following code:
> >
> > Dim WSProxy as MyWebServiceProxy
> > WSProxy.Proxy = New WebProxy(proxyServerAddresss, True, _
> > Nothing, CredentialCache.DefaultCredentials)
> > WSProxy.CallWebServiceMethod()
> >
> > However, this works at client sites where I *don't* have to specify
> > further authentication before web browsing. In other words, it
> > *doesn't* work for the client site first mentioned above.
> >
> >
> > My questions are:
> >
> > When someone supplies the authentication details when they want
> > to use the web browser, are those details added to a CredentialCache?
> >
> > If so, can I get at this CredentialCache to get these credentials?
> >
> > If not, should I create my own credentials based on the username,
> > password and domain that the user normally enters when accessing
> > the web via a web browser?
> >
> > TIA,
> >
> > --
> > Akin
> >
> > aknak at aksoto dot idps dot co dot uk
> >
> >
> >
>
>



Relevant Pages

  • Re: Default credentials
    ... > comes up on my client site requires NTLM or Basic authentication? ... > a web browser - I assume it must be something they have set up ... If your receive a Dialog asking for your creds with NTLM auth ... credentials of the current security context. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Default credentials
    ... > comes up on my client site requires NTLM or Basic authentication? ... > a web browser - I assume it must be something they have set up ... If your receive a Dialog asking for your creds with NTLM auth ... credentials of the current security context. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Default credentials
    ... > comes up on my client site requires NTLM or Basic authentication? ... > a web browser - I assume it must be something they have set up ... If your receive a Dialog asking for your creds with NTLM auth ... credentials of the current security context. ...
    (microsoft.public.dotnet.security)
  • Re: Default credentials
    ... comes up on my client site requires NTLM or Basic authentication? ... > If you need to pass certain credentials to your proxy WS class, ... >> Internet from a client machine. ... >> to browse the Internet using a web browser, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Default credentials
    ... comes up on my client site requires NTLM or Basic authentication? ... > If you need to pass certain credentials to your proxy WS class, ... >> Internet from a client machine. ... >> to browse the Internet using a web browser, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)