From f0f2f459e197a8e8f3f8a4a33b5b2c1274d46c40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no>
Date: Mon, 6 Jan 2014 17:26:28 +0000
Subject: [PATCH] =?UTF-8?q?Fix=20for=20issue=20#606=20(remove=20check=20fo?=
 =?UTF-8?q?r=20=E2=80=98username=E2=80=99=20attribute=20in=20AttributeAddF?=
 =?UTF-8?q?romLDAP)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3316 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/ldap/lib/Auth/Process/AttributeAddFromLDAP.php | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/ldap/lib/Auth/Process/AttributeAddFromLDAP.php b/modules/ldap/lib/Auth/Process/AttributeAddFromLDAP.php
index c731a2f06..463498738 100644
--- a/modules/ldap/lib/Auth/Process/AttributeAddFromLDAP.php
+++ b/modules/ldap/lib/Auth/Process/AttributeAddFromLDAP.php
@@ -102,12 +102,6 @@ class sspmod_ldap_Auth_Process_AttributeAddFromLDAP extends sspmod_ldap_Auth_Pro
 		assert('array_key_exists("Attributes", $request)');
 
 		$attributes =& $request['Attributes'];
-		$map =& $this->attribute_map;
-
-		if(!isset($attributes[$map['username']])){
-			throw new Exception('The user\'s identity does not have an attribute called "'.$map['username'].'"');
-		}
-
 
 		// perform a merge on the ldap_search_filter
 
-- 
GitLab