Re: Check calling users group membership
From: Ivan Medvedev [MS] (ivanmed_at_online.microsoft.com)
Date: 07/25/03
- Next message: Ivan Medvedev [MS]: "Re: automating trust of assembly keys"
- Previous message: Ivan Medvedev [MS]: "Re: Restricting base class/assembly, allowing child class"
- In reply to: MS Newsgroups: "Check calling users group membership"
- Next in thread: MS Newsgroups: "Re: Check calling users group membership"
- Reply: MS Newsgroups: "Re: Check calling users group membership"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 25 Jul 2003 14:05:10 -0700
Niclas -
you have to do this first:
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal)
Hope this helps.
--Ivan
This message is provided "AS IS" with no warranties, and confers no rights.
"MS Newsgroups" <lindblom_niclas@hotmail.com> wrote in message
news:u27UICuUDHA.624@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I have been trying to figure out how to check that a users is a member of
a
> certain group when a form is loaded (I am using VB .net) to filter what
> users are allowed to use a application by Active Directory group
membership.
> I have found some samples that uses
>
> <PrincipalPermission(SecurityAction.Demand, Role:="mydomain\My
Applications
> Group")> _
> Public class Form1
>
>
> but i can not get this to work. Can someone please post a sample showing
> what the correct way of doing this is ?
>
> Many thanks
>
> Niclas
>
>
>
>
- Next message: Ivan Medvedev [MS]: "Re: automating trust of assembly keys"
- Previous message: Ivan Medvedev [MS]: "Re: Restricting base class/assembly, allowing child class"
- In reply to: MS Newsgroups: "Check calling users group membership"
- Next in thread: MS Newsgroups: "Re: Check calling users group membership"
- Reply: MS Newsgroups: "Re: Check calling users group membership"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|