TestimoX

API Reference

Class

KrbtgtKeyVersionTracker

Namespace ADPlayground.Kerberos
Assembly ADPlayground

Tracks the msDS-KeyVersionNumber of the krbtgt account.

Inheritance

  • Object
  • KrbtgtKeyVersionTracker

Constructors

public KrbtgtKeyVersionTracker(Boolean recordHistory = false, Func<String, Nullable<Int32>> resolver = null) #

Initializes a new instance of the KrbtgtKeyVersionTracker class.

Parameters

recordHistory System.Boolean = false optionalposition: 0
Indicates whether key versions should be stored.
resolver System.Func{System.String,System.Nullable{System.Int32}} = null optionalposition: 1
Optional custom resolver for unit testing.

Methods

public Nullable<Int32> GetCurrentKeyVersion(String domain) #
Returns: Nullable<Int32>

Retrieves the current value of the msDS-KeyVersionNumber attribute for the krbtgt account.

Parameters

domain System.String requiredposition: 0
Domain to query.

Returns

Current key version or null when not found.

Properties

public Boolean RecordHistory { get; set; } #

Gets or sets whether retrieved values should be recorded.

public IReadOnlyDictionary<String, List<Int32>> History { get; } #

Collection of recorded key versions per domain.