diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php index a0c51e11210697ce681ae6bd8f1dc79042ea1c15..b7642b9940991a153c0a4ecbb029a73e5b343714 100644 --- a/lib/SimpleSAML/Auth/LDAP.php +++ b/lib/SimpleSAML/Auth/LDAP.php @@ -97,13 +97,13 @@ class SimpleSAML_Auth_LDAP { /** * Search DN for attributes, and return associative array. */ - public function getAttributes($dn, $search) { + public function getAttributes($dn, $attributes) { - $searchtxt = (is_array($search) ? join(',', $search) : 'all attributes'); + $searchtxt = (is_array($attributes) ? join(',', $attributes) : 'all attributes'); SimpleSAML_Logger::debug('Library - LDAP: Get attributes from ' . $dn . ' (' . $searchtxt . ')'); if (is_array($search)) - $sr = @ldap_read($this->ldap, $dn, 'objectClass=*', $search ); + $sr = @ldap_read($this->ldap, $dn, 'objectClass=*', $attributes ); else $sr = @ldap_read($this->ldap, $dn, 'objectClass=*');