Commit 83cffc51 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3074 Fixed snapshot branch creation and dn strings

Showing with 9 additions and 0 deletions
+9 -0
...@@ -40,6 +40,15 @@ class SnapshotHandler { ...@@ -40,6 +40,15 @@ class SnapshotHandler {
function __construct(&$config) function __construct(&$config)
{ {
$this->config = $config; $this->config = $config;
/* Prepare base */
$this->snapshotRDN = $this->config->get_cfg_value("snapshotBase");
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
$ldap->create_missing_trees($this->snapshotRDN);
if (!$ldap->success()) {
msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->snapshotRDN, "", get_class()), LDAP_ERROR);
}
} }
/*! /*!
......
  • bmortier @bmortier

    mentioned in issue #1041 (closed)

    By bmortier on 2017-09-02T15:10:13 (imported from GitLab)

    ·

    mentioned in issue #1041 (closed)

    By bmortier on 2017-09-02T15:10:13 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment