R
Ray Cassick \(Home\)
I have some code that looks like this for one of my classes:
Imports System.Security
Imports System.Security.Permissions
Imports System.Security.Principal
<PrincipalPermission(SecurityAction.Demand, Role:="RUS\GEM_Admin")> _
Public Class GccAdmin
Public Sub New()
End Sub
End Class
The intent here is to make sure that the class cannot be instanced unless
the caller has the correct DomainName\GroupName privileges.
All here is fair and well until I start to think about what this implies. To
me at least, this implies that the domain name is made part of the assembly
at build time. What happens if I want to run this on a different domain?
Seems like I am missing something here...
Anyone care to clear this question up?
--
Raymond R Cassick
CEO / CSA
Enterprocity Inc.
www.enterprocity.com
3380 Sheridan Drive, #143
Amherst, NY 14227
V: 716-316-7537
Blog: http://spaces.msn.com/members/rcassick/
Imports System.Security
Imports System.Security.Permissions
Imports System.Security.Principal
<PrincipalPermission(SecurityAction.Demand, Role:="RUS\GEM_Admin")> _
Public Class GccAdmin
Public Sub New()
End Sub
End Class
The intent here is to make sure that the class cannot be instanced unless
the caller has the correct DomainName\GroupName privileges.
All here is fair and well until I start to think about what this implies. To
me at least, this implies that the domain name is made part of the assembly
at build time. What happens if I want to run this on a different domain?
Seems like I am missing something here...
Anyone care to clear this question up?
--
Raymond R Cassick
CEO / CSA
Enterprocity Inc.
www.enterprocity.com
3380 Sheridan Drive, #143
Amherst, NY 14227
V: 716-316-7537
Blog: http://spaces.msn.com/members/rcassick/