Permalink
Browse files

Wrong order of NT-Hash/LM-Hash when using addAccount() and/or modAcco…

…unt()

git-svn-id: http://svn.php.net/repository/pear/packages/File_SMBPasswd/trunk@168575 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 1915a3d commit 3dbabcf804fa598229b059e73fcf33b2a5bbde58 Michael Bretterklieber committed Sep 14, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 SMBPasswd.php
View
@@ -221,8 +221,8 @@ function addAccount($user, $userid, $pass, $comment = '', $flags = '[U
return $this->addAccountEncrypted(
$user,
$userid,
- strtoupper(bin2hex($this->cryptEngine->ntPasswordHash($pass))),
strtoupper(bin2hex($this->cryptEngine->lmPasswordHash($pass))),
+ strtoupper(bin2hex($this->cryptEngine->ntPasswordHash($pass))),
$comment,
$flags);
}
@@ -318,8 +318,8 @@ function modAccount($user, $userid = '', $pass = '', $comment = '', $flags = '')
return $this->modAccountEncrypted(
$user,
$userid,
- strtoupper(bin2hex($this->cryptEngine->ntPasswordHash($pass))),
strtoupper(bin2hex($this->cryptEngine->lmPasswordHash($pass))),
+ strtoupper(bin2hex($this->cryptEngine->ntPasswordHash($pass))),
$comment,
$flags);
}

0 comments on commit 3dbabcf

Please sign in to comment.