Please, I need your help about my error in phpCAS client.
iam developing sso solution by CAS Server backend LDAP Server.
I don know where is the problem. please give the solution.
Log File :
901D .START phpCAS-1.3.3 ****************** [CAS.php:438]
901D .=> phpCAS::client('3.0', '10.0.12.81', 8443, '') [index.php:26]
901D .| => CAS_Client::__construct('3.0', false, '10.0.12.81', 8443, '', true) [CAS.php:340]
901D .| | Starting a new session pgs43b7b91du7aihq0hn9aim37 [Client.php:906]
901D .| <= ''
901D .<= ''
901D .=> phpCAS::setNoCasServerValidation() [index.php:35]
901D .| You have configured no validation of the legitimacy of the cas server. This is not recommended for production use. [CAS.php:1553]
901D .<= ''
901D .=> phpCAS::forceAuthentication() [index.php:38]
901D .| => CAS_Client::forceAuthentication() [CAS.php:1015]
901D .| | => CAS_Client::isAuthenticated() [Client.php:1245]
901D .| | | => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1356]
901D .| | | | no user found [Client.php:1592]
901D .| | | <= false
901D .| | | no ticket found [Client.php:1453]
901D .| | <= false
901D .| | => CAS_Client::redirectToCas(false) [Client.php:1254]
901D .| | | => CAS_Client::getServerLoginURL(false, false) [Client.php:1613]
901D .| | | | => CAS_Client::getURL() [Client.php:342]
901D .| | | | | Final URI: http://localhost/demo/ta/cas5/ [Client.php:3466]
901D .| | | | <= 'http://localhost/demo/ta/cas5/'
901D .| | | <= 'https://10.0.12.81:8443/login?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F'
901D .| | | Redirect to : https://10.0.12.81:8443/login?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F [Client.php:1620]
901D .| | | exit()
901D .| | | -
901D .| | -
901D .| -
DE52 .START phpCAS-1.3.3 ****************** [CAS.php:438]
DE52 .=> phpCAS::client('3.0', '10.0.12.81', 8443, '') [index.php:26]
DE52 .| => CAS_Client::__construct('3.0', false, '10.0.12.81', 8443, '', true) [CAS.php:340]
DE52 .| | Starting a new session pgs43b7b91du7aihq0hn9aim37 [Client.php:906]
DE52 .| | Ticket 'ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id' found [Client.php:988]
DE52 .| <= ''
DE52 .<= ''
DE52 .=> phpCAS::setNoCasServerValidation() [index.php:35]
DE52 .| You have configured no validation of the legitimacy of the cas server. This is not recommended for production use. [CAS.php:1553]
DE52 .<= ''
DE52 .=> phpCAS::forceAuthentication() [index.php:38]
DE52 .| => CAS_Client::forceAuthentication() [CAS.php:1015]
DE52 .| | => CAS_Client::isAuthenticated() [Client.php:1245]
DE52 .| | | => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1356]
DE52 .| | | | no user found [Client.php:1592]
DE52 .| | | <= false
DE52 .| | | CAS 3.0 ticket `ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id' is present [Client.php:1406]
DE52 .| | | => CAS_Client::validateCAS20('', NULL, NULL) [Client.php:1409]
DE52 .| | | | [Client.php:3101]
DE52 .| | | | => CAS_Client::getServerServiceValidateURL() [Client.php:3108]
DE52 .| | | | | => CAS_Client::getURL() [Client.php:453]
DE52 .| | | | | | Final URI: http://localhost/demo/ta/cas5/ [Client.php:3466]
DE52 .| | | | | <= 'http://localhost/demo/ta/cas5/'
DE52 .| | | | <= 'https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F'
DE52 .| | | | => CAS_Client::_readURL('https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id', NULL, NULL, NULL) [Client.php:3118]
DE52 .| | | | | => CAS_Request_CurlRequest::sendRequest() [AbstractRequest.php:242]
DE52 .| | | | | | curl_exec() failed [CurlRequest.php:77]
DE52 .| | | | | <= false
DE52 .| | | | <= false
DE52 .| | | | could not open URL 'https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id' to validate (CURL error #35: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error) [Client.php:3121]
DE52 .| | | | => CAS_AuthenticationException::__construct(CAS_Client, 'Ticket not validated', 'https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id', true) [Client.php:3125]
DE52 .| | | | | => CAS_Client::getURL() [AuthenticationException.php:76]
DE52 .| | | | | <= 'http://localhost/demo/ta/cas5/'
DE52 .| | | | | CAS URL: https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id [AuthenticationException.php:79]
DE52 .| | | | | Authentication failure: Ticket not validated [AuthenticationException.php:80]
DE52 .| | | | | Reason: no response from the CAS server [AuthenticationException.php:82]
DE52 .| | | | | exit()
DE52 .| | | | | -
DE52 .| | | | -
DE52 .| | | -
DE52 .| | -
DE52 .| -
My phpCAS Client v1.3.3 File :
// Load the settings from the central config file
require_once 'config.php';
// Load the CAS lib
require_once $phpcas_path . 'CAS.php';
// Enable debugging
phpCAS::setDebug();
// Initialize phpCAS
phpCAS::client(CAS_VERSION_2_0, '10.0.12.81', 8443, $cas_context);
// For production use set the CA certificate that is the issuer of the cert
// on the CAS server and uncomment the line below
// phpCAS::setCasServerCACert($cas_server_ca_cert_path);
// For quick testing you can disable SSL validation of the CAS server.
// THIS SETTING IS NOT RECOMMENDED FOR PRODUCTION.
// VALIDATING THE CAS SERVER IS CRUCIAL TO THE SECURITY OF THE CAS PROTOCOL!
phpCAS::setNoCasServerValidation();
// force CAS authentication
phpCAS::forceAuthentication();
// at this step, the user has been authenticated by the CAS server
// and the user's login name can be read with phpCAS::getUser().
// logout if desired
if (isset($_REQUEST['logout'])) {
phpCAS::logout();
}
//phpCAS::setDebug('log.txt');
// for this test, simply print that the authentication was successfull
?>
<title>phpCAS simple client</title>
Successfull Authentication!
phpCAS version is .
the user's login is .
Logout
phpCAS config.php file :
iam using CAS Server v4.0.0.
Thanks for your helping and good response.
Please, I need your help about my error in phpCAS client.
iam developing sso solution by CAS Server backend LDAP Server.
I don know where is the problem. please give the solution.
Log File :
901D .START phpCAS-1.3.3 ****************** [CAS.php:438]
901D .=> phpCAS::client('3.0', '10.0.12.81', 8443, '') [index.php:26]
901D .| => CAS_Client::__construct('3.0', false, '10.0.12.81', 8443, '', true) [CAS.php:340]
901D .| | Starting a new session pgs43b7b91du7aihq0hn9aim37 [Client.php:906]
901D .| <= ''
901D .<= ''
901D .=> phpCAS::setNoCasServerValidation() [index.php:35]
901D .| You have configured no validation of the legitimacy of the cas server. This is not recommended for production use. [CAS.php:1553]
901D .<= ''
901D .=> phpCAS::forceAuthentication() [index.php:38]
901D .| => CAS_Client::forceAuthentication() [CAS.php:1015]
901D .| | => CAS_Client::isAuthenticated() [Client.php:1245]
901D .| | | => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1356]
901D .| | | | no user found [Client.php:1592]
901D .| | | <= false
901D .| | | no ticket found [Client.php:1453]
901D .| | <= false
901D .| | => CAS_Client::redirectToCas(false) [Client.php:1254]
901D .| | | => CAS_Client::getServerLoginURL(false, false) [Client.php:1613]
901D .| | | | => CAS_Client::getURL() [Client.php:342]
901D .| | | | | Final URI: http://localhost/demo/ta/cas5/ [Client.php:3466]
901D .| | | | <= 'http://localhost/demo/ta/cas5/'
901D .| | | <= 'https://10.0.12.81:8443/login?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F'
901D .| | | Redirect to : https://10.0.12.81:8443/login?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F [Client.php:1620]
901D .| | | exit()
901D .| | | -
901D .| | -
901D .| -
DE52 .START phpCAS-1.3.3 ****************** [CAS.php:438]
DE52 .=> phpCAS::client('3.0', '10.0.12.81', 8443, '') [index.php:26]
DE52 .| => CAS_Client::__construct('3.0', false, '10.0.12.81', 8443, '', true) [CAS.php:340]
DE52 .| | Starting a new session pgs43b7b91du7aihq0hn9aim37 [Client.php:906]
DE52 .| | Ticket 'ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id' found [Client.php:988]
DE52 .| <= ''
DE52 .<= ''
DE52 .=> phpCAS::setNoCasServerValidation() [index.php:35]
DE52 .| You have configured no validation of the legitimacy of the cas server. This is not recommended for production use. [CAS.php:1553]
DE52 .<= ''
DE52 .=> phpCAS::forceAuthentication() [index.php:38]
DE52 .| => CAS_Client::forceAuthentication() [CAS.php:1015]
DE52 .| | => CAS_Client::isAuthenticated() [Client.php:1245]
DE52 .| | | => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1356]
DE52 .| | | | no user found [Client.php:1592]
DE52 .| | | <= false
DE52 .| | | CAS 3.0 ticket `ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id' is present [Client.php:1406]
DE52 .| | | => CAS_Client::validateCAS20('', NULL, NULL) [Client.php:1409]
DE52 .| | | | [Client.php:3101]
DE52 .| | | | => CAS_Client::getServerServiceValidateURL() [Client.php:3108]
DE52 .| | | | | => CAS_Client::getURL() [Client.php:453]
DE52 .| | | | | | Final URI: http://localhost/demo/ta/cas5/ [Client.php:3466]
DE52 .| | | | | <= 'http://localhost/demo/ta/cas5/'
DE52 .| | | | <= 'https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F'
DE52 .| | | | => CAS_Client::_readURL('https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id', NULL, NULL, NULL) [Client.php:3118]
DE52 .| | | | | => CAS_Request_CurlRequest::sendRequest() [AbstractRequest.php:242]
DE52 .| | | | | | curl_exec() failed [CurlRequest.php:77]
DE52 .| | | | | <= false
DE52 .| | | | <= false
DE52 .| | | | could not open URL 'https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id' to validate (CURL error #35: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error) [Client.php:3121]
DE52 .| | | | => CAS_AuthenticationException::__construct(CAS_Client, 'Ticket not validated', 'https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id', true) [Client.php:3125]
DE52 .| | | | | => CAS_Client::getURL() [AuthenticationException.php:76]
DE52 .| | | | | <= 'http://localhost/demo/ta/cas5/'
DE52 .| | | | | CAS URL: https://10.0.12.81:8443/p3/serviceValidate?service=http%3A%2F%2Flocalhost%2Fdemo%2Fta%2Fcas5%2F&ticket=ST-14-ffNOhjDhs4PLBfxLevrL-cas.poliupg.ac.id [AuthenticationException.php:79]
DE52 .| | | | | Authentication failure: Ticket not validated [AuthenticationException.php:80]
DE52 .| | | | | Reason: no response from the CAS server [AuthenticationException.php:82]
DE52 .| | | | | exit()
DE52 .| | | | | -
DE52 .| | | | -
DE52 .| | | -
DE52 .| | -
DE52 .| -
My phpCAS Client v1.3.3 File :
// Load the settings from the central config file
require_once 'config.php';
// Load the CAS lib
require_once $phpcas_path . 'CAS.php';
// Enable debugging
phpCAS::setDebug();
// Initialize phpCAS
phpCAS::client(CAS_VERSION_2_0, '10.0.12.81', 8443, $cas_context);
// For production use set the CA certificate that is the issuer of the cert
// on the CAS server and uncomment the line below
// phpCAS::setCasServerCACert($cas_server_ca_cert_path);
// For quick testing you can disable SSL validation of the CAS server.
// THIS SETTING IS NOT RECOMMENDED FOR PRODUCTION.
// VALIDATING THE CAS SERVER IS CRUCIAL TO THE SECURITY OF THE CAS PROTOCOL!
phpCAS::setNoCasServerValidation();
// force CAS authentication
phpCAS::forceAuthentication();
// at this step, the user has been authenticated by the CAS server
// and the user's login name can be read with phpCAS::getUser().
// logout if desired
if (isset($_REQUEST['logout'])) {
phpCAS::logout();
}
//phpCAS::setDebug('log.txt');
// for this test, simply print that the authentication was successfull
<title>phpCAS simple client</title>?>
Successfull Authentication!
phpCAS version is .
the user's login is .
Logout
phpCAS config.php file :
iam using CAS Server v4.0.0.
Thanks for your helping and good response.