performance enhancement

This commit is contained in:
Roland Gruber 2007-11-15 11:02:57 +00:00
parent ba653d0c0b
commit ed37d9f7cf
1 changed files with 6 additions and 2 deletions

View File

@ -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);
}