summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1649235)
raw | patch | inline | side by side (parent: 1649235)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Jul 2010 05:44:16 +0000 (05:44 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Jul 2010 05:44:16 +0000 (05:44 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18923 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/users/class_userManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index 056bb04bbba4e6c52a95437fa97ea6c2d109b685..8ce7bf3b2c1a9aa44ab3a33f0b28ab72455d14a6 100644 (file)
}
}
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