mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-03-01 17:30:28 +00:00
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()
|
private void TestComputerDefaultPassword()
|
||||||
{
|
{
|
||||||
string defaultPassword = this.Account.LogonName.TrimEnd('$').ToLower();
|
string defaultPassword = this.Account.SamAccountName.TrimEnd('$').ToLower();
|
||||||
byte[] defaultHash = NTHash.ComputeHash(defaultPassword);
|
byte[] defaultHash = NTHash.ComputeHash(defaultPassword);
|
||||||
if (HashEqualityComparer.GetInstance().Equals(this.Account.NTHash, defaultHash))
|
if (HashEqualityComparer.GetInstance().Equals(this.Account.NTHash, defaultHash))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user