From 3a2529ed4d2bb59a28d5d21273181db4cfe8ffe2 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Jul 2010 14:25:19 +0000 Subject: [PATCH] Do not write sambaHashes while there is now sambaHashHook defined. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19042 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 531f7942b..4434c514c 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3022,12 +3022,16 @@ function change_password ($dn, $password, $mode=0, $hash= "") // Not for groups if ($mode == 0){ - // Create SMB Password - $attrs= generate_smb_nt_hash($password); - if ($shadow != 0){ - $attrs['shadowLastChange']= $shadow; - } + // Create SMB Password + if ($config->get_cfg_value('sambaHashHook', NULL)) { + echo "111111"; + $attrs= generate_smb_nt_hash($password); + + if ($shadow != 0){ + $attrs['shadowLastChange']= $shadow; + } + } } $attrs['userPassword']= array(); -- 2.30.2