Skip to content
Snippets Groups Projects
Commit d13e41bb authored by Olav Morken's avatar Olav Morken
Browse files

ldapstatus: Update to match new Feide code.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1555 44740490-163a-0410-bde0-09ae8108e29a
parent 7d81cb32
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_ ...@@ -122,7 +122,7 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
try { try {
$tester->tick('adminBind'); $tester->tick('adminBind');
$this->adminBind($this->location->getString('adminUser'), $this->location->getString('adminPassword')); $this->adminBind();
$result['adminBind'] = array(TRUE,$tester->tack('connect')); $result['adminBind'] = array(TRUE,$tester->tack('connect'));
$result['adminBind']['time'] = $tester->tack('connect', FALSE); $result['adminBind']['time'] = $tester->tack('connect', FALSE);
...@@ -178,7 +178,8 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_ ...@@ -178,7 +178,8 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
try { try {
$tester->tick('ldapSearchTestUser'); $tester->tick('ldapSearchTestUser');
$userDN = $this->searchForUser($this->location->getValue('testUser')); $testUser = $this->location->getString('testUser');
$userDN = $this->searchForUser($testUser);
$result['ldapSearchTestUser'] = array(TRUE,$tester->tack('ldapSearchTestUser')); $result['ldapSearchTestUser'] = array(TRUE,$tester->tack('ldapSearchTestUser'));
$result['ldapSearchTestUser']['time'] = $tester->tack('ldapSearchTestUser', FALSE); $result['ldapSearchTestUser']['time'] = $tester->tack('ldapSearchTestUser', FALSE);
...@@ -210,9 +211,9 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_ ...@@ -210,9 +211,9 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
$tester->tick('ldapBindTestUser'); $tester->tick('ldapBindTestUser');
try { try {
if ($attributes = $this->userBind( $this->userBind($testUser, $userDN, $this->location->getValue('testPassword'));
$userDN, $attributes = $this->getAttributes($userDN);
$this->location->getValue('testPassword') )) { if ($attributes) {
$result['ldapBindTestUser'] = array(TRUE,$tester->tack('ldapBindTestUser')); $result['ldapBindTestUser'] = array(TRUE,$tester->tack('ldapBindTestUser'));
$result['ldapBindTestUser']['time'] = $tester->tack('ldapBindTestUser', FALSE); $result['ldapBindTestUser']['time'] = $tester->tack('ldapBindTestUser', FALSE);
} else { } else {
...@@ -233,9 +234,8 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_ ...@@ -233,9 +234,8 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
$tester->tick('getTestOrg'); $tester->tick('getTestOrg');
// Get organization and organizationUnit data. // Get organization and organizationUnit data.
$this->getOrg($attributes, $this->location->getValue('testUser')); $attributes = $this->addOrgAttributes($attributes);
$this->getOrgUnits($attributes, $this->location->getValue('testUser'));
#echo('<pre>'); print_r($attributes); exit;
$result['getTestOrg'] = array(TRUE,$tester->tack('getTestOrg')); $result['getTestOrg'] = array(TRUE,$tester->tack('getTestOrg'));
$result['getTestOrg']['time'] = $tester->tack('getTestOrg', FALSE); $result['getTestOrg']['time'] = $tester->tack('getTestOrg', FALSE);
} catch(Exception $e) { } catch(Exception $e) {
......
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