Skip to content
Snippets Groups Projects
Commit d0d6151d authored by Olav Morken's avatar Olav Morken
Browse files

negotiate: Add support for "attributes"-parameter.

Thanks to Martin van Es for providing this patch!

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3282 44740490-163a-0410-bde0-09ae8108e29a
parent b9d4a419
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source {
$this->subnet = $config->getArray('subnet', NULL);
$this->admin_user = $config->getString('adminUser', NULL);
$this->admin_pw = $config->getString('adminPassword', NULL);
$this->attributes = $config->getArray('attributes', NULL);
}
......@@ -268,7 +269,7 @@ click <a href="'.htmlspecialchars($url).'">here</a>.
$this->adminBind();
try {
$dn = $this->ldap->searchfordn($this->base, $this->attr, $uid);
return $this->ldap->getAttributes($dn);
return $this->ldap->getAttributes($dn, $this->attributes);
} catch (SimpleSAML_Error_Exception $e) {
SimpleSAML_Logger::debug('Negotiate - ldap lookup failed: '. $e);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment