How to get effective permissions for a user on AD

2020-07-18 08:24发布

问题:

I have 3rd party application using AD LDS to store its hierarchical data and I need to provide web UI in ASP.NET MVC for this system. It is using DACLs on directory entries to control users' access permissions for individual entries.

I have found few good articles explaining how to read ActiveDirectoryAccessRules for DirectoryEntry but I cannot find any good way to calculate effective permissions for specific user. Is there any supporting Microsoft API or library available or I need to invent my own way?

Reference URLs for people investigating on similar subjects:

  • Writing your own AD/ADAM permissions editor - 3
  • The .NET developer's guide to directory services programming
  • Access control lists in C#

  • 回答1:

    Does this help: http://www.conarc.com/blog/2010/03/25/programmatically-getting-effective-directoryfile-permissions/