summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5f3f04)
raw | patch | inline | side by side (parent: c5f3f04)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 May 2006 12:32:12 +0000 (12:32 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 May 2006 12:32:12 +0000 (12:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3319 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index c50184cf9e41f351de38a9824c20a8ca43b372f2..e20dcc26ed4641c3327c0d21f90a0ece193b5555 100644 (file)
{
$ldap= $this->config->get_ldap_link();
$ldap->rmDir($this->dn);
+ show_ldap_error($ldap->get_error(), _("Removing application failed"));
/* Optionally execute a command after we're done */
$this->handle_post_events("remove");
$og= new ogroup($this->config, $ldap->getDN());
unset($og->member[$this->dn]);
$og->save ();
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing application from objectgroup '%s' failed"), $og->dn));
}
$ldap->search ("(&(objectClass=posixGroup)(gosaMemberApplication=".$this->cn."))", array("cn"));
while ($attrs= $ldap->fetch()){
$ag= new appgroup($this->config, $ldap->getDN());
$ag->removeApp($this->cn);
$ag->save ();
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing application from group '%s' failed"), $ag->dn));
}
}
$ldap->add($this->attrs);
$this->handle_post_events("add");
}
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Saving application failed"));
}
function set_picture($filename)
diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc
index 12e055a77083a36f1d51d95e6181fa2c9c7a280b..310efad57a9543ca33a0f7db7bd2eb9a0453b703 100644 (file)
@DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
$this->attributes, "Save");
$this->cleanup();
-$ldap->modify ($this->attrs);
+ $ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Removing application parameters failed"));
/* Optionally execute a command after we're done */
$this->handle_post_events('remove');
@DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
$this->attributes, "Save");
$this->cleanup();
-$ldap->modify ($this->attrs);
+ $ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Saving applications parameters failed"));
/* Optionally execute a command after we're done */
$this->handle_post_events('modify');
diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc
index 0f107a7726afbadd8a459172f429072a8e61d824..ed7aaf1de54071e6d093e404fefb34e040298e61 100644 (file)
$ldap= $this->config->get_ldap_link();
$ldap->cd ($this->dn);
$ldap->recursive_remove();
+ show_ldap_error($ldap->get_error(), _("Removing department failed"));
/* Optionally execute a command after we're done */
$this->handle_post_events('remove');
$ldap->add($this->attrs);
$this->handle_post_events('add');
}
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Saving department failed"));
/* The parameter forces only to set must_be_tagged, and don't touch any objects
This will be done later */
index e49419096ec94de4bcd165ccc6e5f495c1fb99cf..1c596cb50dd73d913a81b31be0722c74106bacb5 100644 (file)
/* Write FAIscript to ldap*/
$ldap->cd($this->dn);
$this->cleanup();
-$ldap->modify ($this->attrs);
+ $ldap->modify ($this->attrs);
}else{
/* Write FAIscript to ldap*/
$ldap->cd($this->dn);
$ldap->add($this->attrs);
}
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Saving FAI variable base failed"));
/* Do object tagging */
$this->handle_object_tagging();
- show_ldap_error($ldap->get_error());
/* Prepare FAIscriptEntry to write it to ldap
* First sort array.
$ldap->cd($sub_dn);
$ldap->rmdir_recursive($sub_dn);
$this->handle_post_events("remove");
+ show_ldap_error($ldap->get_error(), _("Removing FAI variable failed"));
}elseif($obj['status'] == "edited"){
$ldap->cd($sub_dn);
$this->cleanup();
-$ldap->modify ($tmp);
+ $ldap->modify ($tmp);
$this->handle_post_events("modify");
+ show_ldap_error($ldap->get_error(), _("Saving FAI variable failed"));
}elseif($obj['status']=="new"){
if($tmp['description'] == array()){
$ldap->cd($sub_dn);
$ldap->add($tmp);
$this->handle_post_events("add");
+ show_ldap_error($ldap->get_error(), _("Saving FAI variable failed"));
}
- show_ldap_error($ldap->get_error());
$this->handle_object_tagging($sub_dn, $this->gosaUnitTag);
- show_ldap_error($ldap->get_error());
}
}
}
index bfbb2a51992aef510ea373ba884a4a1ee437d913..01e05a0de99502f9486a25b280585a181a79d4fe 100644 (file)
$ldap->cd($this->dn);
$this->cleanup();
$ldap->modify ($this->attrs);
-
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Removing ACL information failed"));
}
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Saving ACL information failed"));
}
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index c7f5b7b6de12759db76293dc0e9ba355d5fe77cf..ede18a1668e4faf5c1ab7ea6a479c008e8c78f39 100644 (file)
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Removing application information failed"));
/* Optionally execute a command after we're done */
$this->handle_post_events("remove");
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Saving application information failed"));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index 5d32a551b7f14ccb78b1fe012eb926907bac5774..0c3310eb807e83fa4ddc954ecd91717fc43573da 100644 (file)
<?php
+
class group extends plugin
{
/* CLI vars */
$ldap= $this->config->get_ldap_link();
$ldap->rmdir($this->dn);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Removing group failed"));
/* Delete references to object groups */
$ldap->cd ($this->config->current['BASE']);
$ldap->$mode($this->attrs);
$ret= 0;
- if (show_ldap_error($ldap->get_error())){
+ if (show_ldap_error($ldap->get_error(), _("Saving group failed"))){
$ret= 1;
}
index eb103aac3ca6cf1adb98d46ae18add46de035f4a..abde8634bbe53cc1b295d042440aa57aaaf71cda 100644 (file)
$ldap->cd($this->dn);
$ldap->modify ($this->attrs);
-
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Removing group mail settings failed"));
/* Optionally execute a command after we're done */
$this->handle_post_events("remove");
$ldap->cd($this->dn);
$this->cleanup();
$ldap->modify ($this->attrs);
-
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), _("Saving group mail settings failed"));
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){