From 2a57ce5c805f18c400cff1d6083de54e078c02ee Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 21 May 2007 09:33:23 +0000 Subject: [PATCH] Fixed logging Adden logging to password change git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6414 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_log.inc | 3 ++- include/class_password-methods.inc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/class_log.inc b/include/class_log.inc index e3ec3a513..3b8a56c1a 100644 --- a/include/class_log.inc +++ b/include/class_log.inc @@ -31,7 +31,7 @@ class log { var $LOG_TO_MYSQL = FALSE; var $LOG_TO_SYSLOG= FALSE; - + var $config; /*! \brief logging constructor @@ -46,6 +46,7 @@ class log { function log($action,$objecttype,$object,$changes_array = array(),$result = TRUE) { global $config; + $this->config = $config; $ui = get_userinfo(); /* Create string out of changes */ diff --git a/include/class_password-methods.inc b/include/class_password-methods.inc index 2755134f1..b3c07653d 100644 --- a/include/class_password-methods.inc +++ b/include/class_password-methods.inc @@ -159,9 +159,9 @@ function change_password ($dn, $password, $mode=0, $hash= "") $attrs['userPassword']= array(); $attrs['userPassword']= $newpass; - $ldap->modify($attrs); - + + new log("modify","users/passwordMethod",$dn,array_keys($attrs),$ldap->get_error()); if ($ldap->error != 'Success') { print_red(sprintf(_("Setting the password failed. LDAP server says '%s'."), -- 2.30.2