Skip to content
Snippets Groups Projects
Commit 877902df authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

renamed variable to be attributes, which is what it is

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@339 44740490-163a-0410-bde0-09ae8108e29a
parent 64627f03
No related branches found
No related tags found
No related merge requests found
......@@ -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=*');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment