|
|||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Services
Chapters
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionI have created a 1. Resolve Sid in current domain and trusted domains only. Currently It does not resolve in the forest and few well-know sids. 2. Show all the permissions assigned to a Trustee. 3. Show inheritance information 4. Resolve all the object-guids ==> property, property-set and object types MS has developed a very good architecture to get the data from Active Directory in . I will talk about effective permission in my next article. This is just the beginning for permission in active directory. Algorithm:
Input: Output: Algorithm: Code DirectoryEntry objDE = new DirectoryEntry(adPath, credUser, credPassword); ActiveDirectorySecurity adSecurity = objDE.ObjectSecurity; string sd = adSecurity.GetSecurityDescriptorSddlForm(AccessControlSections.All); AuthorizationRuleCollection rules = adSecurity.GetAccessRules(true, true, typeof(NTAccount); NTAccount class resolves SIDs in the current domain. I have use ::LookupAccountSid to resolve SIDs in trusted domains and to resolve Well-Known SIDs. To resolve Object-Types I am getting all the object-types from the active directory and caching it. The code is really simple and you can figure is out very easily. Still if you have problems please contact me at SumitKJain@hotmail.com
|
||||||||||||||||||||||||||||||||||||||||||||