From 648b5e4071a5343b08bf65e0e22c57a89f3b470b Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 5 Jul 2010 05:49:46 +0000 Subject: [PATCH] Updated Password Hook execution for userManagement 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 8ce7bf3b2..663d598a4 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -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 -- 2.30.2