/// <summary> /// Constructor /// </summary> /// <param name="domainName">the domain or workgroup name.</param> /// <param name="userName">the user name.</param> /// <param name="password">the user's password in the domain or workgroup.</param> /// <param name="flags">Flags used to specify ANSI or UNICODE.</param> public SEC_WINNT_AUTH_IDENTITY( String domainName, String userName, String password, SEC_WINNT_AUTH_IDENTITY_FLAGS flags) { this.Domain = domainName; this.User = userName; this.Password = password; this.DomainLength = (domainName == null) ? 0 : (uint)domainName.Length; this.UserLength = (userName == null) ? 0 : (uint)userName.Length; this.PasswordLength = (password == null) ? 0 : (uint)password.Length; this.Flags = flags; }
public SEC_WINNT_AUTH_IDENTITY( string domain, string username, string password, SEC_WINNT_AUTH_IDENTITY_FLAGS flag ) { this.Domain = domain; this.DomainLength = domain.Length; this.User = username; this.UserLength = username.Length; this.Password = password; this.PasswordLength = password.Length; this.Flags = flag; }