From: hickert Date: Wed, 21 Jul 2010 14:25:19 +0000 (+0000) Subject: Do not write sambaHashes while there is now sambaHashHook defined. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3a2529ed4d2bb59a28d5d21273181db4cfe8ffe2;p=gosa.git 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 --- 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();