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

Letting the attribute parameter to getAttrbutes be optional

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@493 44740490-163a-0410-bde0-09ae8108e29a
parent eb1f8990
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ class SimpleSAML_Auth_LDAP { ...@@ -130,7 +130,7 @@ class SimpleSAML_Auth_LDAP {
/** /**
* Search DN for attributes, and return associative array. * Search DN for attributes, and return associative array.
*/ */
public function getAttributes($dn, $attributes) { public function getAttributes($dn, $attributes = null) {
$searchtxt = (is_array($attributes) ? join(',', $attributes) : 'all attributes'); $searchtxt = (is_array($attributes) ? join(',', $attributes) : 'all attributes');
SimpleSAML_Logger::debug('Library - LDAP: Get attributes from ' . $dn . ' (' . $searchtxt . ')'); SimpleSAML_Logger::debug('Library - LDAP: Get attributes from ' . $dn . ' (' . $searchtxt . ')');
......
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