performance enhancement
This commit is contained in:
parent
ba653d0c0b
commit
ed37d9f7cf
|
@ -30,8 +30,6 @@ $Id$
|
|||
* @package lib
|
||||
*/
|
||||
|
||||
/** Needed to calculate Samba passwords */
|
||||
include_once("createntlm.inc");
|
||||
|
||||
|
||||
/**
|
||||
|
@ -137,6 +135,9 @@ function smbflag($input) {
|
|||
* @return string password hash
|
||||
*/
|
||||
function lmPassword($password) {
|
||||
// Needed to calculate Samba passwords
|
||||
include_once("createntlm.inc");
|
||||
// get hash
|
||||
$hash = new smbHash();
|
||||
return $hash->lmhash($password);
|
||||
}
|
||||
|
@ -148,6 +149,9 @@ function lmPassword($password) {
|
|||
* @return string password hash
|
||||
*/
|
||||
function ntPassword($password) {
|
||||
// Needed to calculate Samba passwords
|
||||
include_once("createntlm.inc");
|
||||
// get hash
|
||||
$hash = new smbHash();
|
||||
return $hash->nthash($password);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue