Hi, I have a problem in CAS failing to Validate the certificate.
When i dig in to code i found out that is failing on the _readURL function in Client.php file.
As you can see below the certificate is issued, is reading the url correctly, is populating the curl_options, but when the request->send() is called is returning null (going into else section), so its failing.
Any ideas why this is happening?
Appreciate any help
Haris
Stack trace:
- line 3166 of /auth/cas/CAS/CAS/Client.php: CAS_AuthenticationException thrown
- line 1417 of /auth/cas/CAS/CAS/Client.php: call to CAS_Client->validateCAS20()
- line 1300 of /auth/cas/CAS/CAS/Client.php: call to CAS_Client->isAuthenticated()
- line 1060 of /auth/cas/CAS/CAS.php: call to CAS_Client->checkAuthentication()
- line 153 of /auth/cas/auth.php: call to phpCAS::checkAuthentication()
- line 90 of /login/index.php: call to auth_plugin_cas->loginpage_hook()
Function that is failing :
if ($request->send()) {
echo 'I AM HERE';
$headers = $request->getResponseHeaders();
$body = $request->getResponseBody();
$err_msg = '';
phpCAS::traceEnd(true);
return true;
} else {
echo 'I AM THERE';
$headers = '';
$body = '';
$err_msg = $request->getErrorMessage();
phpCAS::traceEnd(false);
return false;
}