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

Compare version more correctly... on schema ldapstatus

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1557 44740490-163a-0410-bde0-09ae8108e29a
parent 1426d4e3
No related branches found
No related tags found
No related merge requests found
...@@ -240,7 +240,7 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_ ...@@ -240,7 +240,7 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
$result['getTestOrg']['time'] = $tester->tack('getTestOrg', FALSE); $result['getTestOrg']['time'] = $tester->tack('getTestOrg', FALSE);
if (array_key_exists('eduPersonOrgDN:norEduOrgSchemaVersion', $attributes)) { if (array_key_exists('eduPersonOrgDN:norEduOrgSchemaVersion', $attributes)) {
if ($attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0] == '1.4') { if (version_compare($attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0], '1.4', '>=')) {
$result['schema'] = array(TRUE, 'Version: ' . $attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0]); $result['schema'] = array(TRUE, 'Version: ' . $attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0]);
} else { } else {
$result['schema'] = array(FALSE, 'Version: ' . $attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0]); $result['schema'] = array(FALSE, 'Version: ' . $attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0]);
......
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