Re: Verify User Group from ASP.NET
From:
Date: 06/25/04
- Previous message: Plamen Doykov: "Re: Sessions expire too soon"
- In reply to: Joe Kaplan \(MVP - ADSI\): "Re: Verify User Group from ASP.NET"
- Next in thread:
ike: "Re: Verify User Group from ASP.NET" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
> >
> >
>
>
- Previous message: Plamen Doykov: "Re: Sessions expire too soon"
- In reply to: Joe Kaplan \(MVP - ADSI\): "Re: Verify User Group from ASP.NET"
- Next in thread:
ike: "Re: Verify User Group from ASP.NET" - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|