Merhaba arkadaşlar drupala başka bir server üzerinden bağlanmaya çalışıyoruz. Login yani. Bunun için cas serveri tomcate kurduk drupala eklenti ve kütüphanelerini kurduk. Hiç bir eksik yok sanırım kurduklarımızda. Normalde windows localhostta yaparken çalışıyor fakat linux serverda bağlanmaya çalıştığımızda olmuyor ve hata veriyor;
CAS Authentication failed!
You were not authenticated.
You may submit your request again by clicking here.
If the problem persists, you may contact the administrator of this site.
phpCAS 1.2.2 using server https://casserverip:8443/cas3.5/ (CAS 2.0)
Bu şekilde hata veriyor.
cas loglarını da yazayım;
6449 .START phpCAS-1.2.2 ****************** [CAS.php:478]
6449 .=> phpCAS::proxy('2.0', 'casserverip', 8443, '/cas3.5/', false) [cas.module:252]
6449 .| => CAS_Client::__construct('2.0', true, 'casserverip', 8443, '/cas3.5/', false) [CAS.php:428]
6449 .| <= ''
6449 .<= ''
6449 .=> phpCAS::setNoCasServerValidation() [cas.module:272]
6449 .<= ''
6449 .=> phpCAS::setFixedServiceURL('http://siteadresi/drupal/cas?destination=node') [cas.module:276]
6449 .<= ''
6449 .=> phpCAS::forceAuthentication() [cas.module:75]
6449 .| => CAS_Client::forceAuthentication() [CAS.php:1081]
6449 .| | => CAS_Client::isAuthenticated() [Client.php:962]
6449 .| | | => CAS_Client::wasPreviouslyAuthenticated() [Client.php:1058]
6449 .| | | | neither user not PGT found [Client.php:1219]
6449 .| | | <= false
6449 .| | | no ticket found [Client.php:1120]
6449 .| | <= false
6449 .| | => CAS_Client::redirectToCas(false) [Client.php:971]
6449 .| | | => CAS_Client::getServerLoginURL(false, false) [Client.php:1255]
6449 .| | | | => CAS_Client::getURL() [Client.php:356]
6449 .| | | | <= 'http://siteadresi/drupal/cas?destination=node'
6449 .| | | <= 'https://casserverip:8443/cas3.5/login?service=http%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas%3Fdestination%3Dnode'
6449 .| | | Redirect to : https://casserverip:8443/cas3.5/login?service=http%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas%3Fdestination%3Dnode [Client.php:1257]
6449 .| | | exit()
6449 .| | | -
6449 .| | -
6449 .| -
4D68 .START phpCAS-1.2.2 ****************** [CAS.php:478]
4D68 .=> phpCAS::proxy('2.0', 'casserverip', 8443, '/cas3.5/', false) [cas.module:252]
4D68 .| => CAS_Client::__construct('2.0', true, 'casserverip', 8443, '/cas3.5/', false) [CAS.php:428]
4D68 .| | ST or PT 'ST-16-U2EGGxiE5FAuCk5t2Zcy-cas01.example.org' found [Client.php:796]
4D68 .| <= ''
4D68 .<= ''
4D68 .=> phpCAS::setNoCasServerValidation() [cas.module:272]
4D68 .<= ''
4D68 .=> phpCAS::setFixedServiceURL('http://siteadresi/drupal/cas?destination=node') [cas.module:276]
4D68 .<= ''
4D68 .=> phpCAS::forceAuthentication() [cas.module:75]
4D68 .| => CAS_Client::forceAuthentication() [CAS.php:1081]
4D68 .| | => CAS_Client::isAuthenticated() [Client.php:962]
4D68 .| | | => CAS_Client::wasPreviouslyAuthenticated() [Client.php:1058]
4D68 .| | | | neither user not PGT found [Client.php:1219]
4D68 .| | | <= false
4D68 .| | | PT `ST-16-U2EGGxiE5FAuCk5t2Zcy-cas01.example.org' is present [Client.php:1093]
4D68 .| | | => CAS_Client::validatePT('', NULL, NULL) [Client.php:1094]
4D68 .| | | | [Client.php:2584]
4D68 .| | | | => CAS_Client::getServerProxyValidateURL() [Client.php:2586]
4D68 .| | | | | => CAS_Client::getURL() [Client.php:475]
4D68 .| | | | | <= 'http://siteadresi/drupal/cas?destination=node'
4D68 .| | | | <= 'https://casserverip:8443/cas3.5/proxyValidate?service=http%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas%3Fdestination%3Dnode'
4D68 .| | | | => CAS_CurlRequest::_sendRequest() [AbstractRequest.php:191]
4D68 .| | | | | curl_exec() failed [CurlRequest.php:128]
4D68 .| | | | <= false
4D68 .| | | | could not open URL 'https://casserverip:8443/cas3.5/proxyValidate?service=http%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas%3Fdestination%3Dnode&ticket=ST-16-U2EGGxiE5FAuCk5t2Zcy-cas01.example.org&pgtUrl=https%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas' to validate (CURL error #35: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error) [Client.php:2595]
4D68 .| | | | => CAS_Client::authError('PT not validated', 'https://casserverip:8443/cas3.5/proxyValidate?service=http%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas%3Fdestination%3Dnode&ticket=ST-16-U2EGGxiE5FAuCk5t2Zcy-cas01.example.org&pgtUrl=https%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas', true) [Client.php:2598]
4D68 .| | | | | => CAS_Client::getURL() [Client.php:3014]
4D68 .| | | | | <= 'http://siteadresi/drupal/cas?destination=node'
4D68 .| | | | | CAS URL: https://casserverip:8443/cas3.5/proxyValidate?service=http%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas%3Fdestination%3Dnode&ticket=ST-16-U2EGGxiE5FAuCk5t2Zcy-cas01.example.org&pgtUrl=https%3A%2F%2Fsiteadresi%2Fdrupal%2Fcas [Client.php:3015]
4D68 .| | | | | Authentication failure: PT not validated [Client.php:3016]
4D68 .| | | | | Reason: no response from the CAS server [Client.php:3018]
4D68 .| | | | | exit()
4D68 .| | | | | -
4D68 .| | | | -
4D68 .| | | -
4D68 .| | -
4D68 .| -Bu şekilde cas eklentisi log oluşturuyor.
Tomcatin login denemesinden sonra oluşturduğu logları da yazayım;
=============================================================
WHO: cas
WHAT: ST-15-0C6x44KniuZLk4f2sgvi-cas01.example.org for http://siteadresi/drupal/cas?destination=node
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Wed Feb 20 09:44:26 EET 2013
CLIENT IP ADDRESS: İPADRESİM
SERVER IP ADDRESS: CASSERVERİP
=============================================================
İşte bu şekilde loglarım var. Umarım bi çözümü vardır. Teşekkürler.