VB .Net Security Question
From: David Allen (dallen@carrieraccess.com)
Date: 02/13/03
- Next message: Brian Noyes: "Re: SecurityException for registry access while opening SQL Connection"
- Previous message: Kevin Burton: "Using RSA from ASP.NET"
- Next in thread: Joe Kaplan: "Re: VB .Net Security Question"
- Reply: Joe Kaplan: "Re: VB .Net Security Question"
- Reply: MS Security: "Re: VB .Net Security Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Brian Noyes: "Re: SecurityException for registry access while opening SQL Connection"
- Previous message: Kevin Burton: "Using RSA from ASP.NET"
- Next in thread: Joe Kaplan: "Re: VB .Net Security Question"
- Reply: Joe Kaplan: "Re: VB .Net Security Question"
- Reply: MS Security: "Re: VB .Net Security Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|