API Reference
ADXACL
Provides ADX-prefixed wrappers for Active Directory ACL helpers.
Inheritance
- Object
- ADXACL
Methods
public static Void AddAdxAcl(String adObject, IdentityInfo identity, AclRights rights, AccessControlType controlType, AclInheritance inheritance) #VoidAdds the specified ACL entry to a security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- sid System.String
- The SID to add.
- rights ADPlayground.Acl.AclRights
- The rights to assign.
- controlType System.Security.AccessControl.AccessControlType
- Allow or deny.
- inheritance ADPlayground.Acl.AclInheritance
- Inheritance settings.
AddAdxAcl(System.DirectoryServices.ActiveDirectorySecurity security, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Adds the specified ACL entry to a security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity whose SID will be used.
- rights ADPlayground.Acl.AclRights
- The rights to assign.
- controlType System.Security.AccessControl.AccessControlType
- Allow or deny.
- inheritance ADPlayground.Acl.AclInheritance
- Inheritance settings.
AddAdxAcl(System.DirectoryServices.DirectoryEntry entry, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Adds the specified ACL entry to a directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- sid System.String
- The SID to add.
- rights ADPlayground.Acl.AclRights
- The rights to assign.
- controlType System.Security.AccessControl.AccessControlType
- Allow or deny.
- inheritance ADPlayground.Acl.AclInheritance
- Inheritance settings.
AddAdxAcl(System.DirectoryServices.DirectoryEntry entry, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Adds the specified ACL entry to a directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity whose SID will be used.
- rights ADPlayground.Acl.AclRights
- The rights to assign.
- controlType System.Security.AccessControl.AccessControlType
- Allow or deny.
- inheritance ADPlayground.Acl.AclInheritance
- Inheritance settings.
AddAdxAcl(System.String adObject, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Adds the specified ACL entry to an Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- sid System.String
- The SID to add.
- rights ADPlayground.Acl.AclRights
- The rights to assign.
- controlType System.Security.AccessControl.AccessControlType
- Allow or deny.
- inheritance ADPlayground.Acl.AclInheritance
- Inheritance settings.
AddAdxAcl(System.String adObject, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Adds the specified ACL entry to an Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity whose SID will be used.
- rights ADPlayground.Acl.AclRights
- The rights to assign.
- controlType System.Security.AccessControl.AccessControlType
- Allow or deny.
- inheritance ADPlayground.Acl.AclInheritance
- Inheritance settings.
public static Void AddAdxAclAuditRule(String adObject, IdentityInfo identity, AclRights rights, AuditFlags flags, AclInheritance inheritance) #VoidAdds an audit rule to the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- sid System.String
- The SID to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
AddAdxAclAuditRule(System.DirectoryServices.ActiveDirectorySecurity security, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Adds an audit rule to the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
AddAdxAclAuditRule(System.DirectoryServices.DirectoryEntry entry, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Adds an audit rule to the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- sid System.String
- The SID to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
AddAdxAclAuditRule(System.DirectoryServices.DirectoryEntry entry, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Adds an audit rule to the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
AddAdxAclAuditRule(System.String adObject, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Adds an audit rule to the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- sid System.String
- The SID to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
AddAdxAclAuditRule(System.String adObject, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Adds an audit rule to the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
public static Void ApplyAdxAclChanges(String adObject, Nullable<AclChangeSet> changes) #VoidApplies ACL changes to the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- changes System.Nullable{ADPlayground.Acl.AclChangeSet}
- The change set to apply.
ApplyAdxAclChanges(System.DirectoryServices.DirectoryEntry entry, System.Nullable{ADPlayground.Acl.AclChangeSet} changes) #Applies ACL changes to the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- changes System.Nullable{ADPlayground.Acl.AclChangeSet}
- The change set to apply.
ApplyAdxAclChanges(System.String adObject, System.Nullable{ADPlayground.Acl.AclChangeSet} changes) #Applies ACL changes to the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- changes System.Nullable{ADPlayground.Acl.AclChangeSet}
- The change set to apply.
public static Void DisableAdxAclInheritance(DirectoryEntry entry, Boolean removeInheritedAccessRules) #VoidDisables ACL inheritance for the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- removeInheritedAccessRules System.Boolean
- Whether to remove inherited rules.
DisableAdxAclInheritance(System.DirectoryServices.DirectoryEntry entry, System.Boolean removeInheritedAccessRules) #Disables ACL inheritance for the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- removeInheritedAccessRules System.Boolean
- Whether to remove inherited rules.
public static Void DisableAdxAclInheritance(String adObject, Boolean removeInheritedAccessRules) #VoidDisables ACL inheritance for the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- removeInheritedAccessRules System.Boolean
- Whether to remove inherited rules.
public static Void EnableAdxAclInheritance(DirectoryEntry entry) #VoidEnables ACL inheritance for the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
EnableAdxAclInheritance(System.DirectoryServices.DirectoryEntry entry) #Enables ACL inheritance for the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
public static Void EnableAdxAclInheritance(String adObject) #VoidEnables ACL inheritance for the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
public static AclInfo GetAdxAcl(DirectoryEntry entry) #AclInfoGets ACL information from the provided ActiveDirectorySecurity instance.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to read.
Returns
The ACL information, including owner and access entries.
Examples
Retrieve ACL for a directory entry.
using DirectoryEntry entry = new("LDAP://CN=Users,DC=example,DC=com");
AclInfo acl = ADXACL.GetAdxAcl(entry);
GetAdxAcl(System.DirectoryServices.DirectoryEntry entry) #Gets ACL information from the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry whose ACL will be read.
Returns
The ACL information for the directory entry.
public static AclInfo GetAdxAcl(String adObject) #AclInfoGets ACL information from the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to inspect.
Returns
The ACL information for the directory object.
public static AclChangeSet GetAdxAclChanges(String adObject, IEnumerable<AclEntry> entries) #AclChangeSetComputes changes required to match the desired ACL entries on a security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The current security descriptor.
- entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry}
- The desired set of ACL entries.
Returns
A change set describing entries to add and remove.
GetAdxAclChanges(System.DirectoryServices.DirectoryEntry entry, System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} entries) #Computes ACL changes for the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to compare.
- entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry}
- The desired set of ACL entries.
Returns
A change set describing entries to add and remove.
GetAdxAclChanges(System.String adObject, System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} entries) #Computes ACL changes for the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to compare.
- entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry}
- The desired set of ACL entries.
Returns
A change set describing entries to add and remove.
public static AclOwnerInfo GetAdxAclOwner(DirectoryEntry entry) #AclOwnerInfoGets owner information for the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to inspect.
Returns
Owner information for the security descriptor.
GetAdxAclOwner(System.DirectoryServices.DirectoryEntry entry) #Gets owner information for the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to inspect.
Returns
Owner information for the directory entry.
public static AclOwnerInfo GetAdxAclOwner(String adObject) #AclOwnerInfoGets owner information for the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to inspect.
Returns
Owner information for the directory object.
public static Void RemoveAdxAcl(String adObject, IdentityInfo identity, AclRights rights, AccessControlType controlType, AclInheritance inheritance) #VoidRemoves the specified ACL entry from a security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- sid System.String
- The SID to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the entry.
- controlType System.Security.AccessControl.AccessControlType
- The access control type of the entry.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the entry.
RemoveAdxAcl(System.DirectoryServices.ActiveDirectorySecurity security, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Removes the specified ACL entry from a security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the entry.
- controlType System.Security.AccessControl.AccessControlType
- The access control type of the entry.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the entry.
RemoveAdxAcl(System.DirectoryServices.DirectoryEntry entry, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Removes the specified ACL entry from a directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- sid System.String
- The SID to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the entry.
- controlType System.Security.AccessControl.AccessControlType
- The access control type of the entry.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the entry.
RemoveAdxAcl(System.DirectoryServices.DirectoryEntry entry, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Removes the specified ACL entry from a directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the entry.
- controlType System.Security.AccessControl.AccessControlType
- The access control type of the entry.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the entry.
RemoveAdxAcl(System.String adObject, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Removes the specified ACL entry from an Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- sid System.String
- The SID to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the entry.
- controlType System.Security.AccessControl.AccessControlType
- The access control type of the entry.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the entry.
RemoveAdxAcl(System.String adObject, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AccessControlType controlType, ADPlayground.Acl.AclInheritance inheritance) #Removes the specified ACL entry from an Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the entry.
- controlType System.Security.AccessControl.AccessControlType
- The access control type of the entry.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the entry.
public static Void RemoveAdxAclAuditRule(String adObject, IdentityInfo identity, AclRights rights, AuditFlags flags, AclInheritance inheritance) #VoidRemoves an audit rule from the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- sid System.String
- The SID to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the rule.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to match.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
RemoveAdxAclAuditRule(System.DirectoryServices.ActiveDirectorySecurity security, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Removes an audit rule from the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity whose rule will be removed.
- rights ADPlayground.Acl.AclRights
- The rights associated with the rule.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to match.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
RemoveAdxAclAuditRule(System.DirectoryServices.DirectoryEntry entry, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Removes an audit rule from the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- sid System.String
- The SID to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the rule.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to match.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
RemoveAdxAclAuditRule(System.DirectoryServices.DirectoryEntry entry, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Removes an audit rule from the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity whose rule will be removed.
- rights ADPlayground.Acl.AclRights
- The rights associated with the rule.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to match.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
RemoveAdxAclAuditRule(System.String adObject, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Removes an audit rule from the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- sid System.String
- The SID to remove.
- rights ADPlayground.Acl.AclRights
- The rights associated with the rule.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to match.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
RemoveAdxAclAuditRule(System.String adObject, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Removes an audit rule from the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity whose rule will be removed.
- rights ADPlayground.Acl.AclRights
- The rights associated with the rule.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to match.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
public static Void RestoreAdxAclDefault(ActiveDirectorySecurity security, String defaultSecurityDescriptor, Boolean removeInheritedAccessRules = false) #VoidRestores the default ACL using the provided security descriptor string.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to reset.
- defaultSecurityDescriptor System.String
- The default security descriptor in SDDL form.
- removeInheritedAccessRules System.Boolean = false
- Whether inherited rules should be removed.
Examples
Restore default ACL on a security descriptor.
ADXACL.RestoreAdxAclDefault(security, sddl);
public static Void RestoreAdxAclDefault(DirectoryEntry entry, Boolean removeInheritedAccessRules = false) #VoidRestores the default ACL for the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- removeInheritedAccessRules System.Boolean = false
- Whether inherited rules should be removed.
public static Void RestoreAdxAclDefault(String adObject, Boolean removeInheritedAccessRules = false) #VoidRestores the default ACL for the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- removeInheritedAccessRules System.Boolean = false
- Whether inherited rules should be removed.
public static AclChangeSet SetAdxAcl(String adObject, IEnumerable<AclEntry> entries) #AclChangeSetReplaces ACL entries on a security descriptor with the specified set.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry}
- The entries that should remain.
Returns
The change set describing modifications performed.
SetAdxAcl(System.DirectoryServices.DirectoryEntry entry, System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} entries) #Replaces ACL entries on the specified directory entry with the provided set.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry}
- The entries that should remain.
Returns
The change set describing modifications performed.
SetAdxAcl(System.String adObject, System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} entries) #Replaces ACL entries on the specified Active Directory object path with the provided set.
Parameters
- adObject System.String
- The AD object path to modify.
- entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry}
- The entries that should remain.
Returns
The change set describing modifications performed.
public static Void SetAdxAclAuditRule(String adObject, IdentityInfo identity, AclRights rights, AuditFlags flags, AclInheritance inheritance) #VoidSets an audit rule on the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- sid System.String
- The SID to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
SetAdxAclAuditRule(System.DirectoryServices.ActiveDirectorySecurity security, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Sets an audit rule on the specified security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
SetAdxAclAuditRule(System.DirectoryServices.DirectoryEntry entry, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Sets an audit rule on the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- sid System.String
- The SID to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
SetAdxAclAuditRule(System.DirectoryServices.DirectoryEntry entry, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Sets an audit rule on the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
SetAdxAclAuditRule(System.String adObject, System.String sid, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Sets an audit rule on the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- sid System.String
- The SID to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
SetAdxAclAuditRule(System.String adObject, ADPlayground.Identity.IdentityInfo identity, ADPlayground.Acl.AclRights rights, System.Security.AccessControl.AuditFlags flags, ADPlayground.Acl.AclInheritance inheritance) #Sets an audit rule on the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- identity ADPlayground.Identity.IdentityInfo
- The identity to audit.
- rights ADPlayground.Acl.AclRights
- The rights to audit.
- flags System.Security.AccessControl.AuditFlags
- The audit flags to apply.
- inheritance ADPlayground.Acl.AclInheritance
- The inheritance type of the rule.
public static Void SetAdxAclInheritance(DirectoryEntry entry, Boolean enable, Boolean removeInheritedAccessRules = false) #VoidSets ACL inheritance on a security descriptor.
Parameters
- security System.DirectoryServices.ActiveDirectorySecurity
- The security descriptor to modify.
- enable System.Boolean
- Whether inheritance should be enabled.
- removeInheritedAccessRules System.Boolean = false
- Whether to remove inherited rules when disabling.
SetAdxAclInheritance(System.DirectoryServices.DirectoryEntry entry, System.Boolean enable, System.Boolean removeInheritedAccessRules) #Sets ACL inheritance on the specified directory entry.
Parameters
- entry System.DirectoryServices.DirectoryEntry
- The directory entry to modify.
- enable System.Boolean
- Whether inheritance should be enabled.
- removeInheritedAccessRules System.Boolean
- Whether to remove inherited rules when disabling.
public static Void SetAdxAclInheritance(String adObject, Boolean enable, Boolean removeInheritedAccessRules = false) #VoidSets ACL inheritance on the specified Active Directory object path.
Parameters
- adObject System.String
- The AD object path to modify.
- enable System.Boolean
- Whether inheritance should be enabled.
- removeInheritedAccessRules System.Boolean = false
- Whether to remove inherited rules when disabling.