Hey Joachim,
I'm running PHP Version 5.1.6.
I made another try with phpcas_1.1.3_rc1. Logs are attached at the bottom.
Browser shows the same like before. Only my echo "test1" and everything after
forceAuthentification has no output.
The logs from the try with CAS-1.2.0RC2 are in the first Message...
In CentOS curl was automatically installed with "yum install php". Is it
possible, the erros comes from curl? And do i have to configure more than
tomcat to use SSL?
Like said before, CAS is working and authenticate against openLDAP. Tomcat uses
SSL. This is working. The following steps i made was:
- yum install httpd
- yum install php
- downloaded the phpcas and unzipped it
- startet httpd
- create the test.php and opened it
Maybe i forgot something?
________________________________________________________________
/var/log/test.log:
1EDC .START phpCAS-1.1.3RC1 ****************** [CAS.php:494]
1EDC .=> phpCAS::client('2.0', 'localhost', 8443, '/cas/') [test.php:7]
1EDC .| => CASClient::CASClient('2.0', false, 'localhost', 8443, '/cas/',
true) [CAS.php:397]
1EDC .| | Starting a new session [client.php:600]
1EDC .| <= ''
1EDC .<= ''
1EDC .=> phpCAS::setNoCasServerValidation() [test.php:9]
1EDC .<= ''
1EDC .=> phpCAS::forceAuthentication() [test.php:13]
1EDC .| => CASClient::forceAuthentication() [CAS.php:969]
1EDC .| | => CASClient::isAuthenticated() [client.php:869]
1EDC .| | | => CASClient::wasPreviouslyAuthenticated() [client.php:974]
1EDC .| | | | no user found [client.php:1110]
1EDC .| | | <= false
1EDC .| | | no ticket found [client.php:1027]
1EDC .| | <= false
1EDC .| | => CASClient::redirectToCas(false) [client.php:878]
1EDC .| | | => CASClient::getServerLoginURL(false, false)
[client.php:1127]
1EDC .| | | | => CASClient::getURL() [client.php:361]
1EDC .| | | | | Final URI: http://localhost/test.php
[client.php:2722]
1EDC .| | | | <= 'http://localhost/test.php'
1EDC .| | | <=
'https://localhost:8443/cas/login?service=http%3A%2F%2Flocalhost%2Ftest.php'
1EDC .| | | Redirect to :
https://localhost:8443/cas/login?service=http%3A%2F%2Flocalhost%2Ftest.php
1EDC .| | | exit()
1EDC .| | | -
1EDC .| | -
1EDC .| -
5D5A .START phpCAS-1.1.3RC1 ****************** [CAS.php:494]
5D5A .=> phpCAS::client('2.0', 'localhost', 8443, '/cas/') [test.php:7]
5D5A .| => CASClient::CASClient('2.0', false, 'localhost', 8443, '/cas/',
true) [CAS.php:397]
5D5A .| | Starting a new session [client.php:600]
5D5A .| | ST or PT 'ST-1-fJALx9kewPC7ZaH3cpST-cas' found [client.php:677]
5D5A .| <= ''
5D5A .<= ''
5D5A .=> phpCAS::setNoCasServerValidation() [test.php:9]
5D5A .<= ''
5D5A .=> phpCAS::forceAuthentication() [test.php:13]
5D5A .| => CASClient::forceAuthentication() [CAS.php:969]
5D5A .| | => CASClient::isAuthenticated() [client.php:869]
5D5A .| | | => CASClient::wasPreviouslyAuthenticated() [client.php:974]
5D5A .| | | | no user found [client.php:1110]
5D5A .| | | <= false
5D5A .| | | PT `ST-1-fJALx9kewPC7ZaH3cpST-cas' is present
[client.php:1005]
5D5A .| | | => CASClient::validatePT('', NULL, NULL) [client.php:1006]
5D5A .| | | | => CASClient::getURL() [client.php:481]
5D5A .| | | | | Final URI: http://localhost/test.php
[client.php:2722]
5D5A .| | | | <= 'http://localhost/test.php'
5D5A .| | | | =>
CASClient::readURL('https://localhost:8443/cas/proxyValidate?service=http%3A%2F%2Flocalhost%2Ftest.php&ticket=ST-1-fJALx9kewPC7ZaH3cpST-cas',
'', NULL, NULL, NULL) [client.php:2573]
5D5A .| | | | <= true
__________________________________________________________________
/etc/httpd/logs/error_log:
[Sat Jan 22 14:04:11 2011] [error] [client 127.0.0.1] PHP Fatal error: Class
'DOMDocument' not found in /opt/CAS-1.1.3RC1/CAS/domxml-php4-to-php5.php on
line 114
[Sat Jan 22 14:04:14 2011] [error] [client 127.0.0.1] File does not exist:
/var/www/html/favicon.ico
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user