diff --git a/modules/ldap/lib/Auth/Process/AttributeAddFromLDAP.php b/modules/ldap/lib/Auth/Process/AttributeAddFromLDAP.php index c731a2f06fa012b93c5b734adc5aba73377dc8c3..463498738455509ddb6c3d6b4ed1e85d882b345a 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