namespace S22.Sasl.Mechanisms.Ntlm { /// /// Represents the data contained in the target information block of an /// NTLM type 2 message. /// internal class Type2TargetInformation { /// /// The server name. /// public string ServerName { get; set; } /// /// The domain name. /// public string DomainName { get; set; } /// /// The fully-qualified DNS host name. /// public string DnsHostname { get; set; } /// /// The fully-qualified DNS domain name. /// public string DnsDomainName { get; set; } } /// /// Describes the different versions of the Type 2 message that have /// been observed. /// internal enum Type2Version { /// /// The version is unknown. /// Unknown = 0, /// /// This form is seen in older Win9x-based systems. /// Version1 = 32, /// /// This form is seen in most out-of-box shipping versions of Windows. /// Version2 = 48, /// /// This form was introduced in a relatively recent Service Pack, and /// is seen on currently-patched versions of Windows 2000, Windows XP, /// and Windows 2003. /// Version3 = 56, } /// /// Indicates the type of data in Type 2 target information blocks. /// internal enum Type2InformationType { /// /// Signals the end of the target information block. /// TerminatorBlock = 0, /// /// The data in the information block contains the server name. /// ServerName = 1, /// /// The data in the information block contains the domain name. /// DomainName = 2, /// /// The data in the information block contains the DNS hostname. /// DnsHostname = 3, /// /// The data in the information block contans the DNS domain name. /// DnsDomainName = 4 } }