Skip to content
Snippets Groups Projects
Unverified Commit e98525db authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

negotiate: treat attr-config equal to ldap-configuration

In the ldap-code, search.attributes can be either a string (single attribute) or an array of attributes... The negotiate attr-setting is equal to search.attributes, but was handled differently (as merely a string)
parent bd35d424
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ class Negotiate extends \SimpleSAML\Auth\Source
protected $timeout = 30;
protected $keytab = '';
protected $base = array();
protected $attr = 'uid';
protected $attr = array('uid');
protected $subnet = null;
protected $admin_user = null;
protected $admin_pw = null;
......@@ -62,7 +62,7 @@ class Negotiate extends \SimpleSAML\Auth\Source
$this->timeout = $config->getInteger('timeout', 30);
$this->keytab = $config->getString('keytab');
$this->base = $config->getArrayizeString('base');
$this->attr = $config->getString('attr', 'uid');
$this->attr = $config->getArrayizeString('attr', 'uid');
$this->subnet = $config->getArray('subnet', null);
$this->admin_user = $config->getString('adminUser', null);
$this->admin_pw = $config->getString('adminPassword', null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment