Code

Updated trustSelect Dialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Apr 2010 07:53:44 +0000 (07:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Apr 2010 07:53:44 +0000 (07:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17493 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc

index 07a8db4d63e374c2fd59545a112193564ec838ee..9f97cabf1ab0ba2a7a62b6bf15caedaae30a0e9c 100644 (file)
@@ -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()