From 97700e81482b95002deab74d10c79b3fd09a3ab9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 Apr 2010 07:53:44 +0000 Subject: [PATCH] Updated trustSelect Dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17493 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../posix/trustModeDialog/class_trustModeDialog.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc b/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc index 07a8db4d6..9f97cabf1 100644 --- a/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc +++ b/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc @@ -170,7 +170,18 @@ class trustModeDialog extends plugin $ldap->cd($this->dn); $this->cleanup(); $ldap->modify($this->attrs); - echo $ldap->get_error(); + + /* Log last action */ + if($this->initially_was_account){ + new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + }else{ + new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + } + + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), + $this->dn, LDAP_MOD,get_class())); + } } public function get_multi_edit_values() -- 2.30.2