Re: VB .Net Security Question

From: Joe Kaplan (ilearnedthisthehardway@noway.com)
Date: 02/14/03


From: "Joe Kaplan" <ilearnedthisthehardway@noway.com>
Date: Thu, 13 Feb 2003 21:45:00 -0600


You definitely need the domain name in front of the group if it is a Windows
domain group. Are you sure the current principal is a WindowsPrincipal and
is a member of that domain group? You can do a quick and dirty imperative
check in ASP.NET with context.User.IsInRole("DOMAIN\ArtUser").

Joe K.

"David Allen" <dallen@carrieraccess.com> wrote in message
news:eyQDMZ40CHA.428@TK2MSFTNGP09...
> Hi:
> I am working on the middle tier of an enterprise application, and am
> embedding security checking in it. I am trying to use the following
snippet
> of code to check to see if the currently logged-on use is in the group
> ArtUser. I have tried putting the domain in front of the group name
> (DOMAIN\ArtUser) and that didn't work. I can make this code work just fine
> if I use on of the BUILTIN groups like BUILTIN\Users, and it works fine
> using Name := and the user's name. Can anyone help me out with this? Am I
> missing something that is just blatently obvious?
>
> <PrincipalPermission(SecurityAction.Demand, Role:="ArtUser")> _
> Public Function GetArtRefs() As ArtRefs
>
> 'returns a collection of artref objects.
> Dim oRefs As New ArtRefs()
>
> Thanks in advance,
>
> Dave Allen
>
>



Relevant Pages

  • RE: Replication Between SBS2k3 & Win2000
    ... available through Windows 2000 and if I do have issues with the SBS after ... the Windows Firewall GP in the SYSVOL share and the AD were out of date (by ... Windows 2000 domain group policies, you can upgrade the domain group ... In the "Add Standalone Snap-in" dialog box, click Group Policy, and then ...
    (microsoft.public.windows.server.sbs)
  • Re: How to export list of users from each global, domain, local group?
    ... > I just ugpraded to Windows 2K3 AD. ... > from a particular domain group? ... Microsoft MVP Scripting and ADSI ...
    (microsoft.public.windows.server.active_directory)
  • Adding Domain User
    ... I have a windows 2003 standard edition system. ... administrator to that machine. ... When i try to add a new user i am unable to see the domain group or domain ...
    (microsoft.public.windows.server.setup)
  • Re: VB .Net Security Question
    ... You definitely need the domain name in front of the group if it is a Windows ... is a member of that domain group? ... > ArtUser. ... I can make this code work just fine ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: VB .Net Security Question
    ... also got better results once I ensured that it was a WindowsPrincipal object ... serious lag between the time that I make a change in the group membership, ... > is a member of that domain group? ... I can make this code work just ...
    (microsoft.public.dotnet.security)