TestimoX

API Reference

Class

SpnSyntaxValidator

Namespace ADPlayground.Kerberos
Assembly ADPlayground
Modifiers static

Lightweight SPN format validator. It does not verify service existence, only basic grammar: serviceclass/host[:port][/instance]. Service class must be alnum or dash, starting with a letter. Host cannot contain spaces; optional port must be numeric.

Inheritance

  • Object
  • SpnSyntaxValidator

Methods

public static Boolean IsLikelyValid(String spn, out String reason) #
Returns: Boolean

Returns true when the SPN looks well-formed. Provides a reason when invalid.

Parameters

spn System.String requiredposition: 0
reason System.String@ requiredposition: 1