From 7c1a9ae3c832e55bb7ca6844354809a35dc09d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Mon, 14 Apr 2008 13:27:46 +0000 Subject: [PATCH] Letting the attribute parameter to getAttrbutes be optional git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@493 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Auth/LDAP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php index 91cb29717..fe523bec4 100644 --- a/lib/SimpleSAML/Auth/LDAP.php +++ b/lib/SimpleSAML/Auth/LDAP.php @@ -130,7 +130,7 @@ class SimpleSAML_Auth_LDAP { /** * 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'); SimpleSAML_Logger::debug('Library - LDAP: Get attributes from ' . $dn . ' (' . $searchtxt . ')'); -- GitLab