TestimoX

API Reference

Class

ADXACL

Namespace ADPlayground.Acl
Assembly ADPlayground
Modifiers static

Provides ADX-prefixed wrappers for Active Directory ACL helpers.

Inheritance

  • Object
  • ADXACL

Methods

AddAdxAcl 6 overloads
public static Void AddAdxAcl(String adObject, IdentityInfo identity, AclRights rights, AccessControlType controlType, AclInheritance inheritance) #
Returns: Void

Adds the specified ACL entry to a security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
sid System.String requiredposition: 1
The SID to add.
rights ADPlayground.Acl.AclRights requiredposition: 2
The rights to assign.
controlType System.Security.AccessControl.AccessControlType requiredposition: 3
Allow or deny.
inheritance ADPlayground.Acl.AclInheritance requiredposition: 4
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 required
The security descriptor to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity whose SID will be used.
rights ADPlayground.Acl.AclRights required
The rights to assign.
controlType System.Security.AccessControl.AccessControlType required
Allow or deny.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
sid System.String required
The SID to add.
rights ADPlayground.Acl.AclRights required
The rights to assign.
controlType System.Security.AccessControl.AccessControlType required
Allow or deny.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity whose SID will be used.
rights ADPlayground.Acl.AclRights required
The rights to assign.
controlType System.Security.AccessControl.AccessControlType required
Allow or deny.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
sid System.String required
The SID to add.
rights ADPlayground.Acl.AclRights required
The rights to assign.
controlType System.Security.AccessControl.AccessControlType required
Allow or deny.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity whose SID will be used.
rights ADPlayground.Acl.AclRights required
The rights to assign.
controlType System.Security.AccessControl.AccessControlType required
Allow or deny.
inheritance ADPlayground.Acl.AclInheritance required
Inheritance settings.
AddAdxAclAuditRule 6 overloads
public static Void AddAdxAclAuditRule(String adObject, IdentityInfo identity, AclRights rights, AuditFlags flags, AclInheritance inheritance) #
Returns: Void

Adds an audit rule to the specified security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
sid System.String requiredposition: 1
The SID to audit.
rights ADPlayground.Acl.AclRights requiredposition: 2
The rights to audit.
flags System.Security.AccessControl.AuditFlags requiredposition: 3
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance requiredposition: 4
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 required
The security descriptor to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
sid System.String required
The SID to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
sid System.String required
The SID to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
The inheritance type of the rule.
ApplyAdxAclChanges 3 overloads
public static Void ApplyAdxAclChanges(String adObject, Nullable<AclChangeSet> changes) #
Returns: Void

Applies ACL changes to the specified security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
changes System.Nullable{ADPlayground.Acl.AclChangeSet} requiredposition: 1
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 required
The directory entry to modify.
changes System.Nullable{ADPlayground.Acl.AclChangeSet} required
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 required
The AD object path to modify.
changes System.Nullable{ADPlayground.Acl.AclChangeSet} required
The change set to apply.
DisableAdxAclInheritance 3 overloads
public static Void DisableAdxAclInheritance(DirectoryEntry entry, Boolean removeInheritedAccessRules) #
Returns: Void

Disables ACL inheritance for the specified security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
removeInheritedAccessRules System.Boolean requiredposition: 1
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 required
The directory entry to modify.
removeInheritedAccessRules System.Boolean required
Whether to remove inherited rules.
public static Void DisableAdxAclInheritance(String adObject, Boolean removeInheritedAccessRules) #
Returns: Void

Disables ACL inheritance for the specified Active Directory object path.

Parameters

adObject System.String requiredposition: 0
The AD object path to modify.
removeInheritedAccessRules System.Boolean requiredposition: 1
Whether to remove inherited rules.
EnableAdxAclInheritance 3 overloads
public static Void EnableAdxAclInheritance(DirectoryEntry entry) #
Returns: Void

Enables ACL inheritance for the specified security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
EnableAdxAclInheritance(System.DirectoryServices.DirectoryEntry entry) #

Enables ACL inheritance for the specified directory entry.

Parameters

entry System.DirectoryServices.DirectoryEntry required
The directory entry to modify.
public static Void EnableAdxAclInheritance(String adObject) #
Returns: Void

Enables ACL inheritance for the specified Active Directory object path.

Parameters

adObject System.String requiredposition: 0
The AD object path to modify.
GetAdxAcl 3 overloads
public static AclInfo GetAdxAcl(DirectoryEntry entry) #
Returns: AclInfo

Gets ACL information from the provided ActiveDirectorySecurity instance.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
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 required
The directory entry whose ACL will be read.

Returns

The ACL information for the directory entry.

public static AclInfo GetAdxAcl(String adObject) #
Returns: AclInfo

Gets ACL information from the specified Active Directory object path.

Parameters

adObject System.String requiredposition: 0
The AD object path to inspect.

Returns

The ACL information for the directory object.

GetAdxAclChanges 3 overloads
public static AclChangeSet GetAdxAclChanges(String adObject, IEnumerable<AclEntry> entries) #
Returns: AclChangeSet

Computes changes required to match the desired ACL entries on a security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The current security descriptor.
entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} requiredposition: 1
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 required
The directory entry to compare.
entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} required
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 required
The AD object path to compare.
entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} required
The desired set of ACL entries.

Returns

A change set describing entries to add and remove.

GetAdxAclOwner 3 overloads
public static AclOwnerInfo GetAdxAclOwner(DirectoryEntry entry) #
Returns: AclOwnerInfo

Gets owner information for the specified security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
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 required
The directory entry to inspect.

Returns

Owner information for the directory entry.

public static AclOwnerInfo GetAdxAclOwner(String adObject) #
Returns: AclOwnerInfo

Gets owner information for the specified Active Directory object path.

Parameters

adObject System.String requiredposition: 0
The AD object path to inspect.

Returns

Owner information for the directory object.

RemoveAdxAcl 6 overloads
public static Void RemoveAdxAcl(String adObject, IdentityInfo identity, AclRights rights, AccessControlType controlType, AclInheritance inheritance) #
Returns: Void

Removes the specified ACL entry from a security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
sid System.String requiredposition: 1
The SID to remove.
rights ADPlayground.Acl.AclRights requiredposition: 2
The rights associated with the entry.
controlType System.Security.AccessControl.AccessControlType requiredposition: 3
The access control type of the entry.
inheritance ADPlayground.Acl.AclInheritance requiredposition: 4
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 required
The security descriptor to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to remove.
rights ADPlayground.Acl.AclRights required
The rights associated with the entry.
controlType System.Security.AccessControl.AccessControlType required
The access control type of the entry.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
sid System.String required
The SID to remove.
rights ADPlayground.Acl.AclRights required
The rights associated with the entry.
controlType System.Security.AccessControl.AccessControlType required
The access control type of the entry.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to remove.
rights ADPlayground.Acl.AclRights required
The rights associated with the entry.
controlType System.Security.AccessControl.AccessControlType required
The access control type of the entry.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
sid System.String required
The SID to remove.
rights ADPlayground.Acl.AclRights required
The rights associated with the entry.
controlType System.Security.AccessControl.AccessControlType required
The access control type of the entry.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to remove.
rights ADPlayground.Acl.AclRights required
The rights associated with the entry.
controlType System.Security.AccessControl.AccessControlType required
The access control type of the entry.
inheritance ADPlayground.Acl.AclInheritance required
The inheritance type of the entry.
RemoveAdxAclAuditRule 6 overloads
public static Void RemoveAdxAclAuditRule(String adObject, IdentityInfo identity, AclRights rights, AuditFlags flags, AclInheritance inheritance) #
Returns: Void

Removes an audit rule from the specified security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
sid System.String requiredposition: 1
The SID to remove.
rights ADPlayground.Acl.AclRights requiredposition: 2
The rights associated with the rule.
flags System.Security.AccessControl.AuditFlags requiredposition: 3
The audit flags to match.
inheritance ADPlayground.Acl.AclInheritance requiredposition: 4
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 required
The security descriptor to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity whose rule will be removed.
rights ADPlayground.Acl.AclRights required
The rights associated with the rule.
flags System.Security.AccessControl.AuditFlags required
The audit flags to match.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
sid System.String required
The SID to remove.
rights ADPlayground.Acl.AclRights required
The rights associated with the rule.
flags System.Security.AccessControl.AuditFlags required
The audit flags to match.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity whose rule will be removed.
rights ADPlayground.Acl.AclRights required
The rights associated with the rule.
flags System.Security.AccessControl.AuditFlags required
The audit flags to match.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
sid System.String required
The SID to remove.
rights ADPlayground.Acl.AclRights required
The rights associated with the rule.
flags System.Security.AccessControl.AuditFlags required
The audit flags to match.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity whose rule will be removed.
rights ADPlayground.Acl.AclRights required
The rights associated with the rule.
flags System.Security.AccessControl.AuditFlags required
The audit flags to match.
inheritance ADPlayground.Acl.AclInheritance required
The inheritance type of the rule.
RestoreAdxAclDefault 3 overloads
public static Void RestoreAdxAclDefault(ActiveDirectorySecurity security, String defaultSecurityDescriptor, Boolean removeInheritedAccessRules = false) #
Returns: Void

Restores the default ACL using the provided security descriptor string.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to reset.
defaultSecurityDescriptor System.String requiredposition: 1
The default security descriptor in SDDL form.
removeInheritedAccessRules System.Boolean = false optionalposition: 2
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) #
Returns: Void

Restores the default ACL for the specified directory entry.

Parameters

entry System.DirectoryServices.DirectoryEntry requiredposition: 0
The directory entry to modify.
removeInheritedAccessRules System.Boolean = false optionalposition: 1
Whether inherited rules should be removed.
public static Void RestoreAdxAclDefault(String adObject, Boolean removeInheritedAccessRules = false) #
Returns: Void

Restores the default ACL for the specified Active Directory object path.

Parameters

adObject System.String requiredposition: 0
The AD object path to modify.
removeInheritedAccessRules System.Boolean = false optionalposition: 1
Whether inherited rules should be removed.
SetAdxAcl 3 overloads
public static AclChangeSet SetAdxAcl(String adObject, IEnumerable<AclEntry> entries) #
Returns: AclChangeSet

Replaces ACL entries on a security descriptor with the specified set.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} requiredposition: 1
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 required
The directory entry to modify.
entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} required
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 required
The AD object path to modify.
entries System.Collections.Generic.IEnumerable{ADPlayground.Acl.AclEntry} required
The entries that should remain.

Returns

The change set describing modifications performed.

SetAdxAclAuditRule 6 overloads
public static Void SetAdxAclAuditRule(String adObject, IdentityInfo identity, AclRights rights, AuditFlags flags, AclInheritance inheritance) #
Returns: Void

Sets an audit rule on the specified security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
sid System.String requiredposition: 1
The SID to audit.
rights ADPlayground.Acl.AclRights requiredposition: 2
The rights to audit.
flags System.Security.AccessControl.AuditFlags requiredposition: 3
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance requiredposition: 4
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 required
The security descriptor to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
sid System.String required
The SID to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The directory entry to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
sid System.String required
The SID to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
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 required
The AD object path to modify.
identity ADPlayground.Identity.IdentityInfo required
The identity to audit.
rights ADPlayground.Acl.AclRights required
The rights to audit.
flags System.Security.AccessControl.AuditFlags required
The audit flags to apply.
inheritance ADPlayground.Acl.AclInheritance required
The inheritance type of the rule.
SetAdxAclInheritance 3 overloads
public static Void SetAdxAclInheritance(DirectoryEntry entry, Boolean enable, Boolean removeInheritedAccessRules = false) #
Returns: Void

Sets ACL inheritance on a security descriptor.

Parameters

security System.DirectoryServices.ActiveDirectorySecurity requiredposition: 0
The security descriptor to modify.
enable System.Boolean requiredposition: 1
Whether inheritance should be enabled.
removeInheritedAccessRules System.Boolean = false optionalposition: 2
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 required
The directory entry to modify.
enable System.Boolean required
Whether inheritance should be enabled.
removeInheritedAccessRules System.Boolean required
Whether to remove inherited rules when disabling.
public static Void SetAdxAclInheritance(String adObject, Boolean enable, Boolean removeInheritedAccessRules = false) #
Returns: Void

Sets ACL inheritance on the specified Active Directory object path.

Parameters

adObject System.String requiredposition: 0
The AD object path to modify.
enable System.Boolean requiredposition: 1
Whether inheritance should be enabled.
removeInheritedAccessRules System.Boolean = false optionalposition: 2
Whether to remove inherited rules when disabling.