TestimoX

API Reference

Class

UnconstrainedDelegationChecker

Namespace ADPlayground
Assembly ADPlayground

Finds accounts that are trusted for unconstrained delegation.

Inheritance

  • Object
  • UnconstrainedDelegationChecker

Remarks

See usage examples in the unit tests for typical scenarios.

Constructors

public UnconstrainedDelegationChecker(Func<String, IEnumerable<DelegationEntry>> fetchAccounts = null, Func<IEnumerable<String>> enumerateDomains = null) #

Initializes a new instance of the UnconstrainedDelegationChecker class.

Parameters

fetchAccounts System.Func{System.String,System.Collections.Generic.IEnumerable{ADPlayground.DelegationEntry}} = null optionalposition: 0
Optional delegate used to retrieve account names.
enumerateDomains System.Func{System.Collections.Generic.IEnumerable{System.String}} = null optionalposition: 1
Optional delegate returning domain names to scan.

Methods

public Void Check() #
Returns: Void

Checks every domain in the current forest.

public Void CheckDomain(String domainName = null) #
Returns: Void

Logs a warning for every account trusted for delegation in the given domain.

Parameters

domainName System.String = null optionalposition: 0
Target domain or null for the current domain.
public IEnumerable<DelegationEntry> GetAccounts(String domainName) #
Returns: IEnumerable<DelegationEntry>

Retrieves account names trusted for delegation in the specified domain.

Parameters

domainName System.String requiredposition: 0
Target domain.

Returns

Collection of SAM account names.