Commit 6e9f4cf3 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5261 Using StringAttribute if LDAP base detection fails

Showing with 2 additions and 2 deletions
+2 -2
......@@ -115,7 +115,7 @@ class setupStepLdap extends setupStep
unset($attr['count']);
if (count($attr)) {
if (!($this->attributesAccess['base'] instanceof SelectAttribute)) {
$this->attributesInfo['connection']['base'] = new SelectAttribute(
$this->attributesInfo['connection']['attrs']['base'] = new SelectAttribute(
_('Base'), _('The LDAP directory base'),
'base', TRUE
);
......@@ -123,7 +123,7 @@ class setupStepLdap extends setupStep
$this->attributesAccess['base']->setChoices($attr);
$this->attributesAccess['admin']->attributes[1]->setValue(','.$this->base);
} else {
$this->attributesInfo['connection']['base'] = new StringAttribute(
$this->attributesInfo['connection']['attrs']['base'] = new StringAttribute(
_('Base'), _('The LDAP directory base'),
'base', TRUE
);
......
  • bmortier @bmortier

    mentioned in issue #1668

    By tbp on 2017-09-02T15:34:21 (imported from GitLab)

    ·

    mentioned in issue #1668

    By tbp on 2017-09-02T15:34:21 (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