diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 1525086b..43d20d8d 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -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); }