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

saml:PersistentNameID: Return NULL when we have more than one uid-attribute.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2779 44740490-163a-0410-bde0-09ae8108e29a
parent 6a338062
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ class sspmod_saml_Auth_Process_PersistentNameID extends sspmod_saml_BaseNameIDGe
}
if (count($state['Attributes'][$this->attribute]) > 1) {
SimpleSAML_Logger::warning('More than one value in attribute ' . var_export($this->attribute, TRUE) . ' on user - not generating persistent NameID.');
return NULL;
}
$uid = array_values($state['Attributes'][$this->attribute]); /* Just in case the first index is no longer 0. */
$uid = $uid[0];
......
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