From 36d3c8c17086bb93588f3c234d31864d61275623 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 21 Feb 2008 14:33:03 +0000 Subject: [PATCH] Updated smb alternative git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9025 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 7b135d285..30c7f2778 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2532,8 +2532,9 @@ function generate_smb_nt_hash($password) global $config; # Try to use gosa-si? - if (isset($config->data['MAIN']['GOSA_SI'])){ - $hash= gosaSupportDaemon::send("gosa_gen_smb_hash", "GOSA", array("password" => $password)); + if (isset($config->current['GOSA_SI'])){ + $res= gosaSupportDaemon::send("gosa_gen_smb_hash", "GOSA", array("password" => $password), TRUE); + $hash= $res['XML']['HASH']; } else { $tmp= $config->data['MAIN']['SMBHASH']." ".escapeshellarg($password); @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $tmp, "Execute"); -- 2.30.2