Re: Using declaritive security on class members
From: Jason Kleban (jason.kleban_at_bdhhi.com)
Date: 07/21/03
- Next message: Michel Gallant: "Re: Public Key encoding in .NET"
- Previous message: Michael Giagnocavo [MVP]: "Re: Using declaritive security on class members"
- In reply to: Michael Giagnocavo [MVP]: "Re: Using declaritive security on class members"
- Next in thread: Eugene V. Bobukh [MS]: "Re: Using declaritive security on class members"
- Reply: Eugene V. Bobukh [MS]: "Re: Using declaritive security on class members"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 21 Jul 2003 10:23:04 -0700
I just tried that on your recommendation and I get the
same rejection.
Request for Principal Permission Failed.
I tired it with and without the Name parameter, and
setting it to both "" and null
Jason
>-----Original Message-----
>Have you tried with Role = @"BUILTIN\Administrators" ?
>-mike
>MVP
>
>"Jason Kleban" <jason.kleban@bdhhi.com> wrote in message
>news:01ad01c34fa2$60e60750$a101280a@phx.gbl...
>> I'm trying to require that the user account calling
>> certain member functions belongs to an admin role.
>>
>> I've tried several variations on the following, but I
get
>> denied every time. I need something in the form of the
>> first, yet I tried others just to get any positive
results
>> (but got none). I can't say I've tried every combo, but
>> I'm thinking more is wrong with what I'm doing than just
>> the strings I'm giving it.
>>
>> [PrincipalPermissionAttribute(SecurityAction.Demand,
Role
>> = @"myDomain\Administrators")]
>> public void selfDestruct(){ ... }
>>
>> [PrincipalPermissionAttribute(SecurityAction.Demand,
Name
>> = "myUser")]
>>
>> [PrincipalPermissionAttribute(SecurityAction.Demand,
Name
>> = @"myDomain\myUser")]
>>
>> [PrincipalPermissionAttribute(SecurityAction.Demand,
Name
>> = @"myComputer\myUser")]
>>
>> [PrincipalPermissionAttribute(SecurityAction.Demand,
Name
>> = "", Role = "Administrators")]
>>
>> [PrincipalPermissionAttribute(SecurityAction.Demand,
Name
>> = null, Role = "Administrators")]
>>
>> [PrincipalPermissionAttribute(SecurityAction.Demand,
Name
>> = null, Role = @"myDomain\Administrators")]
>>
>> and so on.
>>
>> Any help?
>>
>> Thanks,
>>
>> Jason
>
>
>.
>
- Next message: Michel Gallant: "Re: Public Key encoding in .NET"
- Previous message: Michael Giagnocavo [MVP]: "Re: Using declaritive security on class members"
- In reply to: Michael Giagnocavo [MVP]: "Re: Using declaritive security on class members"
- Next in thread: Eugene V. Bobukh [MS]: "Re: Using declaritive security on class members"
- Reply: Eugene V. Bobukh [MS]: "Re: Using declaritive security on class members"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|