Code

Updated Password Hook execution for userManagement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Jul 2010 05:49:46 +0000 (05:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Jul 2010 05:49:46 +0000 (05:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18924 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_userManagement.inc

index 8ce7bf3b2c1a9aa44ab3a33f0b28ab72455d14a6..663d598a4d9cb4c3f0151ae9915ee3f5dcad5fe7 100644 (file)
@@ -336,12 +336,12 @@ class userManagement extends management
                       return($smarty->fetch(get_template_path('password.tpl', TRUE)));
                   }
               }
-              if ($this->config->get_cfg_value("core","passwordHook") != ""){
+              if ($this->config->get_cfg_value("passwordHook") != ""){
                   $ldap = $this->config->get_ldap_link();
                   $ldap->cd($this->config->current['BASE']);
                   $ldap->cat($this->dn,array('uid'));
                   $attrs = $ldap->fetch();
-                  exec($this->config->get_cfg_value("core","passwordHook")." ".$attrs['uid'][0]." ".$new_password, $resarr);
+                  exec($this->config->get_cfg_value("passwordHook")." ".$attrs['uid'][0]." ".$_POST['new_password'], $resarr);
               }
 
               // The user has to change his password on next login