summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 45bd9f6)
raw | patch | inline | side by side (parent: 45bd9f6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Jun 2006 03:38:48 +0000 (03:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Jun 2006 03:38:48 +0000 (03:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3859 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history |
index b205c00cd824f380971645304fb339f967d02deb..f9cfa6aa4209aedf92aa7238be9cabe99719f574 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
}
/* Get configuration from gosa.conf */
- $tmp = $this->config->data['MAIN'];
+ $tmp = $this->config->current;
/* Check if the undo level is specified */
if(isset($tmp['SNAPSHOT_UNDO_LEVEL'])){
$UndoLvl = $tmp['SNAPSHOT_UNDO_LEVEL'];
if(!isset($tmp['SNAPSHOT_SERVER'])){
/* Source and destination server are both the same, just copy source to dest obj */
- $ldap_to = $ldap;
+ $ldap_to = $ldap;
+ $snapldapbase = $this->config->current['BASE'];
}else{
$server = $tmp['SNAPSHOT_SERVER'];
}
/* Inset this new snapshot */
+ $ldap_to->cd($snapldapbase);
$ldap_to->create_missing_trees($new_base);
$ldap_to->cd($new_dn);
$ldap_to->add($target);
+
show_ldap_error($ldap_to->get_error(), _("Create snapshot failed."));
show_ldap_error($ldap->get_error(), _("Create snapshot failed."));
There will also be some errors psoted, if the configuration failed */
function snapshotEnabled()
{
- $tmp = $this->config->data['MAIN'];
+ $tmp = $this->config->current;
if(isset($tmp['ENABLE_SNAPSHOT'])){
if (preg_match("/^true$/i", $tmp['ENABLE_SNAPSHOT']) || preg_match("/yes/i", $tmp['ENABLE_SNAPSHOT'])){
points to our ldap snapshot server */
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $tmp = $this->config->data['MAIN'];
+ $tmp = $this->config->current;
/* check if there are special server configurations for snapshots */
if(isset($tmp['SNAPSHOT_SERVER'])){
points to our ldap snapshot server */
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $tmp = $this->config->data['MAIN'];
+ $tmp = $this->config->current;
/* check if there are special server configurations for snapshots */
if(isset($tmp['SNAPSHOT_SERVER'])){
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
- $tmp = $this->config->data['MAIN'];
+ $tmp = $this->config->current;
/* check if there are special server configurations for snapshots */
if(isset($tmp['SNAPSHOT_SERVER'])){