Set NTFS Permissions with DirectorySecurity after created Active Dirctory Groups c#

Posted by maverick on Stack Overflow See other posts from Stack Overflow or by maverick
Published on 2010-06-01T09:18:41Z Indexed on 2010/06/01 9:23 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

Hi

I am a little confused about setting NTFS Permissions to a directory after I created Active Directory Groups (both programmatically). When I created the Active Directory Objects then I have to wait a few seconds to set the NTFS Permissions. If I have not this timeout then I get sometimes an error message that the identify (active directory groupname) could not found. Is it possible that the DirectorySecurity-Class from DirectoryInfo-Class has an different algorithm to get the idenfity from active directory objects? Because when I checking the existing of the groups in active directory with System.DirectoryServices all the objects exist suddenly after creation.

Kind regards

© Stack Overflow or respective owner

Related posts about c#

Related posts about ntfs