summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0eb61b9)
raw | patch | inline | side by side (parent: 0eb61b9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Apr 2010 12:54:40 +0000 (12:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Apr 2010 12:54:40 +0000 (12:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17910 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_SnapshotHandler.inc | patch | blob | history |
diff --git a/gosa-core/include/class_SnapshotHandler.inc b/gosa-core/include/class_SnapshotHandler.inc
index ae04963fbbe1ecf2f58dc7dfd23d172880309a81..9f5b4833ab2a7b0b69e589f2d184f054f14608ad 100644 (file)
var $isEnabled= false;
var $snapshotBases= array();
-
/* Create handler */
function SnapshotHandler(&$config)
{
function remove_snapshot($dn)
{
$ui = get_userinfo();
- $old_dn = $this->dn;
- $this->dn = $dn;
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $ldap->rmdir_recursive($this->dn);
+ $ldap->rmdir_recursive($dn);
if(!$ldap->success()){
- msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn));
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn));
}
- $this->dn = $old_dn;
}
/* returns true if snapshots are enabled, and false if it is disalbed
There will also be some errors psoted, if the configuration failed */