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_
try {
$tester->tick('adminBind');
$this->adminBind($this->location->getString('adminUser'), $this->location->getString('adminPassword'));
$this->adminBind();
$result['adminBind'] = array(TRUE,$tester->tack('connect'));
$result['adminBind']['time'] = $tester->tack('connect', FALSE);
......@@ -178,7 +178,8 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
try {
$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']['time'] = $tester->tack('ldapSearchTestUser', FALSE);
......@@ -210,9 +211,9 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
$tester->tick('ldapBindTestUser');
try {
if ($attributes = $this->userBind(
$userDN,
$this->location->getValue('testPassword') )) {
$this->userBind($testUser, $userDN, $this->location->getValue('testPassword'));
$attributes = $this->getAttributes($userDN);
if ($attributes) {
$result['ldapBindTestUser'] = array(TRUE,$tester->tack('ldapBindTestUser'));
$result['ldapBindTestUser']['time'] = $tester->tack('ldapBindTestUser', FALSE);
} else {
......@@ -233,9 +234,8 @@ 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'));
#echo('<pre>'); print_r($attributes); exit;
$attributes = $this->addOrgAttributes($attributes);
$result['getTestOrg'] = array(TRUE,$tester->tack('getTestOrg'));
$result['getTestOrg']['time'] = $tester->tack('getTestOrg', FALSE);
} 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