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

Fixes #5261 Using StringAttribute if LDAP base detection fails

parent cfb70cd4
......@@ -115,7 +115,7 @@ class setupStepLdap extends setupStep
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
} else {
$this->attributesInfo['connection']['base'] = new StringAttribute(
$this->attributesInfo['connection']['attrs']['base'] = new StringAttribute(
_('Base'), _('The LDAP directory base'),
'base', TRUE
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment