| @@ 63-75 (lines=13) @@ | ||
| 60 | $connTestResult = $connTest->getResult(); |
|
| 61 | $this->addTestResult($connTestResult); |
|
| 62 | ||
| 63 | if ($connTestResult->getState() === State::OK) { |
|
| 64 | $certData = $connTestResult->getOutput('certData'); |
|
| 65 | ||
| 66 | // Test certificate when available |
|
| 67 | if ($certData !== null) { |
|
| 68 | $certTest = new TestCase\Cert( |
|
| 69 | $this, |
|
| 70 | new TestData(['certData' => $certData, 'category' => 'LDAP Server Certificate']) |
|
| 71 | ); |
|
| 72 | $certTestResult = $certTest->getTestResult(); |
|
| 73 | $this->addTestResult($certTestResult); |
|
| 74 | } |
|
| 75 | } |
|
| 76 | } |
|
| 77 | ||
| 78 | // Test bind |
|
| @@ 64-77 (lines=14) @@ | ||
| 61 | ||
| 62 | $this->addTest($connTest); |
|
| 63 | ||
| 64 | if ($connTestResult->getState() === State::OK) { |
|
| 65 | // Check Service Communications Certificate |
|
| 66 | $certData = $connTestResult->getOutput('certData'); |
|
| 67 | ||
| 68 | if (Utils\HTTP::isHTTPS() && $certData !== null) { |
|
| 69 | $input = [ |
|
| 70 | 'category' => 'Service Communications Certificate', |
|
| 71 | 'certData' => $certData, |
|
| 72 | ]; |
|
| 73 | ||
| 74 | $certTest = new TestCase\Cert\Data($this, new TestData($input)); |
|
| 75 | $this->addTest($certTest); |
|
| 76 | } // else {'Unable to capture peer certificate'} |
|
| 77 | } |
|
| 78 | ||
| 79 | // Check metadata signing certificate when available |
|
| 80 | if (is_string($this->metadataCert)) { |
|