
Signature
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
Hi Joe,
Thanks for the reply.
> against the SIDs in the ACL. Depending on what matches,
> the allow or deny is calculated.
Correct. But, a User Allow is placed before a Group Deny. For example,
suppose I have a DACL which allows user John Doe, but denies John Doe
Group. John would have access because the user allow is placed before
the group deny. Hence the need to differentiates between the ACEs.
> backup operators can read files that they may not
> actually be granted access to read by the DACL.
I'm going to punt on this in the program.
What I need to do is procees a lot of data over the network. So I
want to use the above as a sanity check. This way, the program does
not get 10 minutes in and catch an exception which could have been
determined early. My thinking is, why waste everyone's time with a
basic mistake? I don't like it when I use a program and it happens to
me.
Jeff
On Dec 27, 11:58 am, "Joe Kaplan"
<joseph.e.kap...@removethis.accenture.com> wrote:
> I think there is a p/invoke you can use to get the type of the SID, but why
> would you need to do this? Normally, when this type of comparison is being
[quoted text clipped - 17 lines]
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net
[SNIP]
Joe Kaplan - 28 Dec 2007 19:16 GMT
You should be processing based on the SID value, not the trustee name. The
user John Doe and the group John Doe will have different SIDs, so that won't
be a problem. It is not actually possible for you to have duplicate
sAMAccountName values for a security principal in the same domain though, so
the only way you could duplicate them would be via the same account in
different domains. If you use the fully qualified NT account name
(domain\user), you should not have collisions based on account names either.
Joe K.

Signature
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
Hi Joe,
Thanks for the reply.
> against the SIDs in the ACL. Depending on what matches,
> the allow or deny is calculated.
Correct. But, a User Allow is placed before a Group Deny. For example,
suppose I have a DACL which allows user John Doe, but denies John Doe
Group. John would have access because the user allow is placed before
the group deny. Hence the need to differentiates between the ACEs.
> backup operators can read files that they may not
> actually be granted access to read by the DACL.
I'm going to punt on this in the program.
What I need to do is procees a lot of data over the network. So I
want to use the above as a sanity check. This way, the program does
not get 10 minutes in and catch an exception which could have been
determined early. My thinking is, why waste everyone's time with a
basic mistake? I don't like it when I use a program and it happens to
me.
Jeff
On Dec 27, 11:58 am, "Joe Kaplan"
<joseph.e.kap...@removethis.accenture.com> wrote:
> I think there is a p/invoke you can use to get the type of the SID, but
> why
[quoted text clipped - 24 lines]
>
> news:b22f5d3a-fae9-49e8-be84-c78af6b84873@1g2000hsl.googlegroups.com...
[SNIP]