Fixed a bug in TestComputerDefaultPassword

TestComputerDefaultPassword() was using LogonName instead of SamAccountName to calculate the default computer password.
This commit is contained in:
Michael Grafnetter 2020-12-23 21:32:01 +01:00 committed by GitHub
parent e255029658
commit d9ea984be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@
private void TestComputerDefaultPassword()
{
string defaultPassword = this.Account.LogonName.TrimEnd('$').ToLower();
string defaultPassword = this.Account.SamAccountName.TrimEnd('$').ToLower();
byte[] defaultHash = NTHash.ComputeHash(defaultPassword);
if (HashEqualityComparer.GetInstance().Equals(this.Account.NTHash, defaultHash))
{