From 8cd71966fbd55b7fd67ca8c849eaf1df7ab42462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez?= <jaime.perez@uninett.no> Date: Mon, 12 Dec 2016 12:11:02 +0100 Subject: [PATCH] bugfix: When obtaining a UserID for the state array prior to running authproc filters, if the source attribute had multiple values a warning was logged but the UserID was still recorded. --- lib/SimpleSAML/Auth/ProcessingChain.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/SimpleSAML/Auth/ProcessingChain.php b/lib/SimpleSAML/Auth/ProcessingChain.php index 8a718524c..228274220 100644 --- a/lib/SimpleSAML/Auth/ProcessingChain.php +++ b/lib/SimpleSAML/Auth/ProcessingChain.php @@ -344,6 +344,7 @@ class SimpleSAML_Auth_ProcessingChain { if (count($uid) > 1) { SimpleSAML\Logger::warning('Multiple attribute values for user id attribute [' . $attributeName . '].'); + return; } $uid = $uid[0]; -- GitLab