Re: Capturing Windows Username without popping challenge box in the browser

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Joyjit Mukherjee (joyjit_mukherjee_at_hotmail.com)
Date: 12/08/04


Date: Wed, 8 Dec 2004 15:08:20 +0530

Ok..I got it, thats the default behavior for Internet zone security. If you
want a bypass, in IE, Click Tools -> Internet Options -> Security Tab ->
Internet -> Custom Level -> User Authentication -> Automatic logon with
current username and password. But thats a security breach and shouldn't be
practised.

Joyjit

"Joyjit Mukherjee" <joyjit_mukherjee@hotmail.com> wrote in message
news:%23CQ6uhQ3EHA.2568@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> Do you have any <deny/> element under the authorization tag ? It seems
that
> you are denying users so that IE pops up the window to enter username /
> password.
>
> Let me know your Web.config entry.
>
> Joyjit
>
> "Raj Thakkar" <rthakkar@theage.com.au> wrote in message
> news:1102493819.185598.170190@c13g2000cwb.googlegroups.com...
> > Hi,
> > I am currenty working on a site for intranet.
> > I have a user control in the header of every page that will be
> > displayed only if people with certain username are surfing the site.
> > These lists of usernames is stored on the server side in a xml based
> > file
> >
> > So what I am doing at the moment is inside the user control pageload
> > method, i get the username of the current person logged in using
> > HttpContext.Current.User.Identity.Name and if the username is within
> > the list of 'allowed-access-usernames', I continue loading the
> > usercontrol else I set its visibility to false
> > so they can't see it.
> >
> > It all works fine if I try to access the site from localhost.
> > The application grabs my windows username and verfies it against the
> > list, if i am present in the list, I see the control else I don't
> >
> > The problem comes when I try to access the site from different machine.
> > As soon as i try to access the page, IE pops up a window asking for
> > username and password which I don;t want to.
> > I want to just grab the username of currenty logged in user on the
> > machine and give it to the server.
> >
> > Can anyone help me how do i achieve this?
> >
> > BTW, I am doing this using windows authentication.
> > In the IIS 5.1, I have
> > Anonymous Access unchecked
> > Integrated Windows Authentication checked
> >
> > In web.config file
> > I have windows authentication
> > and
> > <identity impersonate="true" />
> >
> >
> > Thanks,
> > Raj
> >
>
>



Relevant Pages

  • Capturing Windows Username without popping challenge box in the browser
    ... displayed only if people with certain username are surfing the site. ... These lists of usernames is stored on the server side in a xml based ... So what I am doing at the moment is inside the user control pageload ... I am doing this using windows authentication. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problems signing request when using Windows Authentication
    ... Even though a web-based UI may be set up for Windows authentication, ... >>> In the client I add a username token to the request. ... >>> security tokens in the request.", ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: RDA Problems
    ... What username and password I need to provide if ... --It will use the device credentials passed in by the RDA or Repl ... Produced By Microsoft MimeOLE V6.00.3790.0 ... I use windows authentication, ...
    (microsoft.public.sqlserver.ce)
  • Re: OWA logon
    ... Exchange and OWA I found out that Exchange had Basic Authentication and ... Windows Authentication enabled. ... domain and username is the logon name of the user. ...
    (microsoft.public.exchange.clients)
  • Re: domain required for OWA login?
    ... Basic Authentication and Windows Authentication. ... login without the domain name, but when I logout it asks for my username ... Regarding the logout thing, make sure that the settings on the exchweb VDir ...
    (microsoft.public.exchange.setup)