Code

Removed mysql logging stuff from class log
[gosa.git] / gosa-core / include / functions.inc
index 1234a6d44cf6090ad67c60779b3c0da574ae019b..d7921871bec4b6ff74053fbdc5b294c326fde589 100644 (file)
@@ -2977,13 +2977,12 @@ 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
-      $attrs= generate_smb_nt_hash($password);
     }
 
     $attrs['userPassword']= array();