Re: Verify User Group from ASP.NET

From: ike (M)
Date: 06/25/04

  • Next message: ike: "Re: Verify User Group from ASP.NET"
    Date: Fri, 25 Jun 2004 09:48:07 +0100
    
    

    Wow,

    That's pretty simple. Compared to the old classic ASP days, it's a doddle!

    Cheers,

    <M>ike

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:et7p0JhWEHA.1380@TK2MSFTNGP09.phx.gbl...
    > If you are using Windows authentication with IIS and ASP.NET (anonymous
    > disabled in IIS, authentication set to Windows in web.config), then all
    you
    > have to do is call Context.User.IsInRole("domain\group name")
    >
    > That will return true or false if the currently authenticated user is in
    the
    > group you specified. The Windows security system does all the heavy
    lifting
    > for you.
    >
    > If you aren't using Windows auth, this is vastly more painful, but can be
    > done by looking up the user's groups programmatically.
    >
    > Joe K.
    >
    > "<M>ike" <mikedotdinnisatabraxas-ukdotcom> wrote in message
    > news:ecv9ZtfWEHA.556@tk2msftngp13.phx.gbl...
    > > Hello,
    > >
    > > I'm a little uncertain about what I'm asking so please be gentle.
    > >
    > > I (think) I want to be able to identify and authenticate the currently
    > > logged on user against the Active Directory. We have a 2000 domain
    server
    > > and 2000 clients on our network.
    > >
    > > The idea behind it all is am storing documents in a SQL database and
    have
    > a
    > > list of groups who can view them. If the currently logged on user is not
    > in
    > > one of those groups then they should not be permitted to open the
    > document.
    > >
    > > I'm using VB.NET in ASP.NET to develop with and would appreciate any
    ideas
    > > of where to look for examples of what to do.
    > >
    > > Thanks,
    > >
    > > <M>ike
    > >
    > >
    >
    >


  • Next message: ike: "Re: Verify User Group from ASP.NET"

    Relevant Pages

    • Re: Windows Authentication method on IIS6
      ... The microsoft.public.windows.server.* groups deal with Windows 2003 ... The microsoft.public.inetserver.* groups deal with IIS ... > the authentication button, ... You can configure either one or multiple realm names on a server running IIS ...
      (microsoft.public.win2000.security)
    • Re: How to access Windows IIS User Info with Perl
      ... but the IIS server is configured for Windows ... allowed for Basic Authentication, Windows Authentication (or whatever ... Do you know if they are part of a standard ...
      (comp.lang.perl.misc)
    • Windows Authentication with IIS on separate machines
      ... Yes, setting Basic Authentication in IIS works, but the ... >in SQL server but doesn't work if user account was ... >imported from a Windows account. ...
      (microsoft.public.sqlserver.security)
    • Re: Change in ASP.Net authentication between Win2000 and Win2003
      ... IIS Resource Guide). ... I next looked a little into Windows 2003. ... IMHO, the label on the option, "Enable Integrated Windows Authentication", ... the documentation leads one to ...
      (microsoft.public.inetserver.iis.security)
    • Re: Change in ASP.Net authentication between Win2000 and Win2003
      ... IIS Resource Guide). ... I next looked a little into Windows 2003. ... IMHO, the label on the option, "Enable Integrated Windows Authentication", ... the documentation leads one to ...
      (microsoft.public.windows.server.security)