Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3dbabcf804fa598229b059e73fcf33b2a5bbde58 1 parent 1915a3d
Michael Bretterklieber authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 SMBPasswd.php
View
4 SMBPasswd.php
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.