Fixed a bug in TestComputerDefaultPassword
TestComputerDefaultPassword() was using LogonName instead of SamAccountName to calculate the default computer password.
This commit is contained in:
parent
e255029658
commit
d9ea984be9
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue