From ed37d9f7cf0a4c3eeb8292217b94692a3508e5b0 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 15 Nov 2007 11:02:57 +0000 Subject: [PATCH] performance enhancement --- lam/lib/account.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); }