diff --git a/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php b/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php index d6780b282732b81e976635ded62f90901d60e30e..8367702edee5a5a9a7daf780e044e2fada4aeade 100755 --- a/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php +++ b/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php @@ -185,8 +185,9 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_ $tester->tick('getTestOrg'); // Get organization and organizationUnit data. - $this->getOrg(&$attributes, $this->location->getValue('testUser')); - $this->getOrgUnits(&$attributes, $this->location->getValue('testUser')); + $this->getOrg($attributes, $this->location->getValue('testUser')); + $this->getOrgUnits($attributes, $this->location->getValue('testUser')); + #echo('<pre>'); print_r($attributes); exit; $result['getTestOrg'] = array(TRUE,$tester->tack('getTestOrg')); } catch(Exception $e) { $tester->log('LDAP Test user attributes failed:' . $e->getMessage()); diff --git a/modules/ldapstatus/lib/Tester.php b/modules/ldapstatus/lib/Tester.php index 89df654d3d9ab6b1400e444e5c8b1c6794cb9387..ef8da951bb0666cec2514a609249271215b553b4 100644 --- a/modules/ldapstatus/lib/Tester.php +++ b/modules/ldapstatus/lib/Tester.php @@ -88,7 +88,7 @@ class sspmod_ldapstatus_Tester { $this->log('ldapstatus phpping(): ping [' . $host . ':' . $port . ']' ); $timeout = 1.0; - $socket = @fsockopen($host, $port, &$errno, $errstr, $timeout); + $socket = @fsockopen($host, $port, $errno, $errstr, $timeout); if ($socket) @fclose($socket); if ($errno) { return array(FALSE, $errno . ':' . $errstr . ' [' . $host . ':' . $port . ']');