From: hickert Date: Mon, 5 Jul 2010 05:44:16 +0000 (+0000) Subject: Updated executeion off password hooks. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4972b27ce0a98603224c2f4aa671ae835eb38349;p=gosa.git Updated executeion off password hooks. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18923 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 056bb04bb..8ce7bf3b2 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -337,7 +337,11 @@ class userManagement extends management } } if ($this->config->get_cfg_value("core","passwordHook") != ""){ - exec($this->config->get_cfg_value("core","passwordHook")." ".$this->dn." ".$new_password, $resarr); + $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); } // The user has to change his password on next login