From 19512911209320d3ff3aed1f071d643d340f379f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Thu, 19 Mar 2009 10:18:48 +0000 Subject: [PATCH] Bug fix in fallback handling in smartname module git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1423 44740490-163a-0410-bde0-09ae8108e29a --- modules/smartnameattribute/lib/Auth/Process/SmartName.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/smartnameattribute/lib/Auth/Process/SmartName.php b/modules/smartnameattribute/lib/Auth/Process/SmartName.php index 6275a792b..b969c8d5f 100644 --- a/modules/smartnameattribute/lib/Auth/Process/SmartName.php +++ b/modules/smartnameattribute/lib/Auth/Process/SmartName.php @@ -39,7 +39,7 @@ class sspmod_smartnameattribute_Auth_Process_SmartName extends SimpleSAML_Auth_P return $attributes['givenName'][0]; if (isset($attributes['eduPersonPrincipalName'])) { - $localname = $this->getLocalUser($attributes['eduPersonPrincipalName']); + $localname = $this->getLocalUser($attributes['eduPersonPrincipalName'][0]); if (isset($localname)) return $localname; } -- GitLab