API Reference
Class
KerberosTicketLifetimeChecker
Evaluates Kerberos ticket lifetimes in domain policy.
Inheritance
- Object
- KerberosTicketLifetimeChecker
Remarks
See usage examples in the unit tests for typical scenarios.
Constructors
public KerberosTicketLifetimeChecker(Func<String, ValueTuple<Nullable<Int32>, Nullable<Int32>>> fetchPolicy = null, Func<IEnumerable<String>> enumerateDomains = null) #Initializes a new instance of the KerberosTicketLifetimeChecker class.
Parameters
- fetchPolicy System.Func{System.String,System.ValueTuple{System.Nullable{System.Int32},System.Nullable{System.Int32}}} = null
- Delegate retrieving ticket lifetime settings for a domain.
- enumerateDomains System.Func{System.Collections.Generic.IEnumerable{System.String}} = null
- Delegate returning domain names to process.
Methods
public Void CheckDomain(String domainName = null) #Returns:
VoidLogs warnings when ticket lifetimes exceed recommended values in the specified domain.
Parameters
- domainName System.String = null
- Domain to check or null for the current domain.
public static IEnumerable<String> FilterExceeding(IEnumerable<ValueTuple<String, Nullable<Int32>, Nullable<Int32>>> policies) #Returns:
IEnumerable<String>Filters provided data to domains with ticket lifetimes exceeding recommended values.
Parameters
- policies System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.Nullable{System.Int32},System.Nullable{System.Int32}}}
- Collection of domain ticket lifetime data.
Returns
Domain names with excessive values.
public IEnumerable<ValueTuple<String, Nullable<Int32>, Nullable<Int32>>> GetPolicies() #Returns:
IEnumerable<ValueTuple<String, Nullable<Int32>, Nullable<Int32>>>Retrieves ticket lifetime settings for all domains in the forest.
Returns
Collection of domain data.
public ValueTuple<Nullable<Int32>, Nullable<Int32>> GetPolicy(String domainName) #Returns:
ValueTuple<Nullable<Int32>, Nullable<Int32>>Retrieves ticket lifetime settings for the specified domain.
Parameters
- domainName System.String
- Target domain name.
Returns
Tuple containing lifetime settings.