VB .Net Security Question

From: David Allen (dallen@carrieraccess.com)
Date: 02/13/03


From: "David Allen" <dallen@carrieraccess.com>
Date: Thu, 13 Feb 2003 10:35:49 -0700


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

  • VB .Net Security Question
    ... I am working on the middle tier of an enterprise application, ... embedding security checking in it. ... I am trying to use the following snippet ... I can make this code work just fine ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: VB .Net Security Question
    ... > I am working on the middle tier of an enterprise application, ... > embedding security checking in it. ... I can make this code work just fine ...
    (microsoft.public.dotnet.security)
  • Re: VB .Net Security Question
    ... > I am working on the middle tier of an enterprise application, ... > embedding security checking in it. ... I can make this code work just fine ...
    (microsoft.public.dotnet.framework.aspnet.security)