summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 394d618)
raw | patch | inline | side by side (parent: 394d618)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 16 Sep 2010 13:25:30 +0000 (13:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 16 Sep 2010 13:25:30 +0000 (13:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19717 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Device/class_Device.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_Device.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_Device.inc
index 1a7eac72cd82973664d5691e7d8b046adef97ca6..04b08f6883c14d39cb2ec8e5663e3d3fa141ee4e 100644 (file)
$ldap->cd($this->config->current['BASE']);
$ldap->cd($this->dn);
+ // Perform action modify/create
if($this->initially_was_account){
$ldap->modify($this->attrs);
+ new log("modify","Device/".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()));
+ }else{
+ $this->handle_post_events("modify");
+ }
}else{
$ldap->add($this->attrs);
+ new log("create","Device/".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_ADD, get_class()));
+ }else{
+ $this->handle_post_events("add");
+ }
}
- echo $ldap->get_error();
}