Re: DirectorySecurity and ACLs
- From: "Henning Krause [MVP]" <newsgroups.remove@xxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Feb 2006 21:06:52 +0100
Hello,
I'm not sure but I believe you must be at Windows 2000 Domain functional
level... And tha constructor of the WindowsIdentity class can only be called
from a Windows 2003 Server.
Greetings,
Henning Krause
"Jaret Langston" <jaret.langston@xxxxxxxxx> wrote in message
news:D5DF1C3C-106B-4C8E-B548-C34F8DBED9F2@xxxxxxxxxxxxxxxx
Thanks for the response.
We have a mix of 2000 and 2003 DCs in our forrest. I have tried the new
WindowsPrincipal(new WindowsIdentity(username)).IsInRole() and get the
error
"Invalid Function". Any idea how to correct that?
I do realize that the local groups on the remote servers will not be
easily
checked, but 98% of our permissions are AD group based, so I should be
mostly
ok.
Thanks!
--
Jaret Langston
Amsouth Bank
"Henning Krause [MVP]" wrote:
Hello,
thats very difficult to do...especially, if the acl is from another
computer... think of this:
There is an Explicit READ ACL for LocalAdministrators on machine X.
LocalGroupA contains a global group which contains UserA.
If you check that acl from a different computer, you cannot easily check
whether UserA has acces rights on that folder. See
http://blogs.msdn.com/oldnewthing/archive/2006/02/02/523171.aspx for more
information on this topic.
As for the WindowsPrincipal.IsInRole.. with .NET 2.0 and a Windows 2003
Domain, you can use
new WindowsPrincipal(new WindowsIdentity(username)).IsInRole().
See http://msdn.microsoft.com/msdnmag/issues/03/04/SecurityBriefs/ for
more
on this Kereberos S4U Feature.
Greetings,
Henning Krause
"Jaret Langston" <jaret.langston@xxxxxxxxx> wrote in message
news:732FC1CC-F81E-4CBF-B5D8-C19E0ECD806F@xxxxxxxxxxxxxxxx
I want to check the ACL rights on a directory/file and see if an ACL for
a
Group or User is covered by another ACL. The goal is to check the
directory/file ACLs for redundant rule sets. I am using VS2005 and
Framework
2.0 for this code.
For example:
There is an Explicit READ ACL for UserX.
There is an Inherited Change ACL for GroupY.
How do I determine if UserX is covered by the GroupY ACL?
The application is NOT being executed by UserX, so the
WindowsPrincipal.IsInRole is not an option (that I know of).
Thanks for any assistance.
--
Jaret Langston
Amsouth Bank
.
- References:
- Re: DirectorySecurity and ACLs
- From: Henning Krause [MVP]
- Re: DirectorySecurity and ACLs
- Prev by Date: Re: DirectorySecurity and ACLs
- Next by Date: Re: DirectorySecurity and ACLs
- Previous by thread: Re: DirectorySecurity and ACLs
- Next by thread: Re: DirectorySecurity and ACLs
- Index(es):
Relevant Pages
|