I can see one error in the logs:

domxml_open_mem() failed [client.php:2067]

I also see that you are trying you are using client() mode and you are trying to get an proxy ticket for your imap server. This will not work and is the reason domxml error. You can see the first signs in the lines above where the pgt= paramter is empty. You need to use proxy() and intead of client() before your can can get proxy tickets.

From a quick glance at the egroupware code (1.8.) their code will always fail if you don't enable proxy mode in the egroupware configuration menu/file somewhere. The else{} part of there login code (lin66 login.php) will always produce an invalid phpcas configuration.

Cheers,

Joachim


[1]
> 23B2 .=>  CASClient::retrievePT('imap://localhost', NULL, NULL)
> [CAS.php:1409]
> 23B2 .|    =>
> CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxy?targetService=imap%3A%2F%2Flocalhost&pgt=', '', NULL, NULL, '') [client.php:2054]
> 23B2 .|<= true
> 23B2 .|    domxml_open_mem() failed [client.php:2067]




Am 24.09.2010 13:46, schrieb Joel Rosental R.:
This is the output of phpCAS::setDebug($filename) applied to egroupware:


1150 .START phpCAS-1.1.2 ****************** [CAS.php:494]
1150 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
1150 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
1150 .|    |    Starting a new session [client.php:599]
1150 .|<= ''
1150 .<= ''
1150 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
1150 .<= ''
1150 .=>  phpCAS::forceAuthentication() [login.php:90]
1150 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
1150 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
1150 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
1150 .|    |    |    |    no user found [client.php:1104]
1150 .|    |    |<= false
1150 .|    |    |    no ticket found [client.php:1024]
1150 .|    |<= false
1150 .|    |    =>  CASClient::redirectToCas(false) [client.php:877]
1150 .|    |    |    =>  CASClient::getServerLoginURL(false, false)
[client.php:1121]
1150 .|    |    |    |    =>  CASClient::getURL() [client.php:360]
1150 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
1150 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
1150 .|    |    |<=
'https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php'
1150 .|    |    |    Redirect to :
https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php
1150 .|    |    |    exit()
1150 .|    |    |    -
1150 .|    |    -
1150 .|    -
23B2 .START phpCAS-1.1.2 ****************** [CAS.php:494]
23B2 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
23B2 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
23B2 .|    |    Starting a new session [client.php:599]
23B2 .|    |    ST or PT 'ST-12700-aEpPL45gR9l0aJ0RkGXb-cas' found
[client.php:676]
23B2 .|<= ''
23B2 .<= ''
23B2 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
23B2 .<= ''
23B2 .=>  phpCAS::forceAuthentication() [login.php:90]
23B2 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
23B2 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
23B2 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
23B2 .|    |    |    |    no user found [client.php:1104]
23B2 .|    |    |<= false
23B2 .|    |    |    PT `ST-12700-aEpPL45gR9l0aJ0RkGXb-cas' is present
[client.php:1002]
23B2 .|    |    |    =>  CASClient::validatePT('', NULL, NULL)
[client.php:1003]
23B2 .|    |    |    |    =>  CASClient::getURL() [client.php:480]
23B2 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
23B2 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
23B2 .|    |    |    |    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxyValidate?service=https%3A%2F%2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%3D%252Findex.php&ticket=ST-12700-aEpPL45gR9l0aJ0RkGXb-cas',
 '', NULL, NULL, NULL) [client.php:2504]
23B2 .|    |    |    |<= true
23B2 .|    |    |    |    =>
CASClient::renameSession('ST-12700-aEpPL45gR9l0aJ0RkGXb-cas')
[client.php:2567]
23B2 .|    |    |    |    |    Session ID:
ST12700aEpPL45gR9l0aJ0RkGXbcas [client.php:737]
23B2 .|    |    |    |    |    Restoring old session vars
[client.php:740]
23B2 .|    |    |    |<= ''
23B2 .|    |    |<= true
23B2 .|    |    |    PT `ST-12700-aEpPL45gR9l0aJ0RkGXb-cas' was
validated [client.php:1004]
23B2 .|    |    |    =>  CASClient::getURL() [client.php:1029]
23B2 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
23B2 .|    |    |    =>  CASClient::getURL() [client.php:1030]
23B2 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
23B2 .|    |    |    Prepare redirect to :
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php
23B2 .|    |<= true
23B2 .|    |    no need to authenticate [client.php:870]
23B2 .|<= true
23B2 .|    no need to authenticate (user `jrosental' is already
authenticated) [CAS.php:985]
23B2 .<= ''
23B2 .=>  CASClient::retrievePT('imap://localhost', NULL, NULL)
[CAS.php:1409]
23B2 .|    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxy?targetService=imap%3A%2F%2Flocalhost&pgt=',
 '', NULL, NULL, '') [client.php:2054]
23B2 .|<= true
23B2 .|    domxml_open_mem() failed [client.php:2067]
23B2 .<= false
AF34 .START phpCAS-1.1.2 ****************** [CAS.php:494]
AF34 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
AF34 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
AF34 .|    |    Starting a new session [client.php:599]
AF34 .|<= ''
AF34 .<= ''
AF34 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
AF34 .<= ''
AF34 .=>  phpCAS::forceAuthentication() [login.php:90]
AF34 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
AF34 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
AF34 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
AF34 .|    |    |    |    no user found [client.php:1104]
AF34 .|    |    |<= false
AF34 .|    |    |    no ticket found [client.php:1024]
AF34 .|    |<= false
AF34 .|    |    =>  CASClient::redirectToCas(false) [client.php:877]
AF34 .|    |    |    =>  CASClient::getServerLoginURL(false, false)
[client.php:1121]
AF34 .|    |    |    |    =>  CASClient::getURL() [client.php:360]
AF34 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
AF34 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
AF34 .|    |    |<=
'https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php'
AF34 .|    |    |    Redirect to :
https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php
AF34 .|    |    |    exit()
AF34 .|    |    |    -
AF34 .|    |    -
AF34 .|    -
606A .START phpCAS-1.1.2 ****************** [CAS.php:494]
606A .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
606A .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
606A .|    |    Starting a new session [client.php:599]
606A .|    |    ST or PT 'ST-12701-Oy3rmurMD2Pt0YrEIKz5-cas' found
[client.php:676]
606A .|<= ''
606A .<= ''
606A .=>  phpCAS::setNoCasServerValidation() [login.php:87]
606A .<= ''
606A .=>  phpCAS::forceAuthentication() [login.php:90]
606A .|    =>  CASClient::forceAuthentication() [CAS.php:969]
606A .|    |    =>  CASClient::isAuthenticated() [client.php:868]
606A .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
606A .|    |    |    |    no user found [client.php:1104]
606A .|    |    |<= false
606A .|    |    |    PT `ST-12701-Oy3rmurMD2Pt0YrEIKz5-cas' is present
[client.php:1002]
606A .|    |    |    =>  CASClient::validatePT('', NULL, NULL)
[client.php:1003]
606A .|    |    |    |    =>  CASClient::getURL() [client.php:480]
606A .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
606A .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
606A .|    |    |    |    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxyValidate?service=https%3A%2F%2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%3D%252Findex.php&ticket=ST-12701-Oy3rmurMD2Pt0YrEIKz5-cas',
 '', NULL, NULL, NULL) [client.php:2504]
606A .|    |    |    |<= true
606A .|    |    |    |    =>
CASClient::renameSession('ST-12701-Oy3rmurMD2Pt0YrEIKz5-cas')
[client.php:2567]
606A .|    |    |    |    |    Session ID:
ST12701Oy3rmurMD2Pt0YrEIKz5cas [client.php:737]
606A .|    |    |    |    |    Restoring old session vars
[client.php:740]
606A .|    |    |    |<= ''
606A .|    |    |<= true
606A .|    |    |    PT `ST-12701-Oy3rmurMD2Pt0YrEIKz5-cas' was
validated [client.php:1004]
606A .|    |    |    =>  CASClient::getURL() [client.php:1029]
606A .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
606A .|    |    |    =>  CASClient::getURL() [client.php:1030]
606A .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
606A .|    |    |    Prepare redirect to :
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php
606A .|    |<= true
606A .|    |    no need to authenticate [client.php:870]
606A .|<= true
606A .|    no need to authenticate (user `jrosental' is already
authenticated) [CAS.php:985]
606A .<= ''
606A .=>  CASClient::retrievePT('imap://localhost', NULL, NULL)
[CAS.php:1409]
606A .|    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxy?targetService=imap%3A%2F%2Flocalhost&pgt=',
 '', NULL, NULL, '') [client.php:2054]
606A .|<= true
606A .|    domxml_open_mem() failed [client.php:2067]
606A .<= false
3185 .START phpCAS-1.1.2 ****************** [CAS.php:494]
3185 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
3185 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
3185 .|    |    Starting a new session [client.php:599]
3185 .|<= ''
3185 .<= ''
3185 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
3185 .<= ''
3185 .=>  phpCAS::forceAuthentication() [login.php:90]
3185 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
3185 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
3185 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
3185 .|    |    |    |    no user found [client.php:1104]
3185 .|    |    |<= false
3185 .|    |    |    no ticket found [client.php:1024]
3185 .|    |<= false
3185 .|    |    =>  CASClient::redirectToCas(false) [client.php:877]
3185 .|    |    |    =>  CASClient::getServerLoginURL(false, false)
[client.php:1121]
3185 .|    |    |    |    =>  CASClient::getURL() [client.php:360]
3185 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
3185 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
3185 .|    |    |<=
'https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php'
3185 .|    |    |    Redirect to :
https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php
3185 .|    |    |    exit()
3185 .|    |    |    -
3185 .|    |    -
3185 .|    -
6489 .START phpCAS-1.1.2 ****************** [CAS.php:494]
6489 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
6489 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
6489 .|    |    Starting a new session [client.php:599]
6489 .|    |    ST or PT 'ST-12702-zavQUpcrIedywNCYaNDI-cas' found
[client.php:676]
6489 .|<= ''
6489 .<= ''
6489 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
6489 .<= ''
6489 .=>  phpCAS::forceAuthentication() [login.php:90]
6489 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
6489 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
6489 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
6489 .|    |    |    |    no user found [client.php:1104]
6489 .|    |    |<= false
6489 .|    |    |    PT `ST-12702-zavQUpcrIedywNCYaNDI-cas' is present
[client.php:1002]
6489 .|    |    |    =>  CASClient::validatePT('', NULL, NULL)
[client.php:1003]
6489 .|    |    |    |    =>  CASClient::getURL() [client.php:480]
6489 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
6489 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
6489 .|    |    |    |    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxyValidate?service=https%3A%2F%2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%3D%252Findex.php&ticket=ST-12702-zavQUpcrIedywNCYaNDI-cas',
 '', NULL, NULL, NULL) [client.php:2504]
6489 .|    |    |    |<= true
6489 .|    |    |    |    =>
CASClient::renameSession('ST-12702-zavQUpcrIedywNCYaNDI-cas')
[client.php:2567]
6489 .|    |    |    |    |    Session ID:
ST12702zavQUpcrIedywNCYaNDIcas [client.php:737]
6489 .|    |    |    |    |    Restoring old session vars
[client.php:740]
6489 .|    |    |    |<= ''
6489 .|    |    |<= true
6489 .|    |    |    PT `ST-12702-zavQUpcrIedywNCYaNDI-cas' was
validated [client.php:1004]
6489 .|    |    |    =>  CASClient::getURL() [client.php:1029]
6489 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
6489 .|    |    |    =>  CASClient::getURL() [client.php:1030]
6489 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
6489 .|    |    |    Prepare redirect to :
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php
6489 .|    |<= true
6489 .|    |    no need to authenticate [client.php:870]
6489 .|<= true
6489 .|    no need to authenticate (user `jrosental' is already
authenticated) [CAS.php:985]
6489 .<= ''
6489 .=>  CASClient::retrievePT('imap://localhost', NULL, NULL)
[CAS.php:1409]
6489 .|    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxy?targetService=imap%3A%2F%2Flocalhost&pgt=',
 '', NULL, NULL, '') [client.php:2054]
6489 .|<= true
6489 .|    domxml_open_mem() failed [client.php:2067]
6489 .<= false
D3B5 .START phpCAS-1.1.2 ****************** [CAS.php:494]
D3B5 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
D3B5 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
D3B5 .|    |    Starting a new session [client.php:599]
D3B5 .|<= ''
D3B5 .<= ''
D3B5 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
D3B5 .<= ''
D3B5 .=>  phpCAS::forceAuthentication() [login.php:90]
D3B5 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
D3B5 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
D3B5 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
D3B5 .|    |    |    |    no user found [client.php:1104]
D3B5 .|    |    |<= false
D3B5 .|    |    |    no ticket found [client.php:1024]
D3B5 .|    |<= false
D3B5 .|    |    =>  CASClient::redirectToCas(false) [client.php:877]
D3B5 .|    |    |    =>  CASClient::getServerLoginURL(false, false)
[client.php:1121]
D3B5 .|    |    |    |    =>  CASClient::getURL() [client.php:360]
D3B5 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
D3B5 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
D3B5 .|    |    |<=
'https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php'
D3B5 .|    |    |    Redirect to :
https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php
D3B5 .|    |    |    exit()
D3B5 .|    |    |    -
D3B5 .|    |    -
D3B5 .|    -
6804 .START phpCAS-1.1.2 ****************** [CAS.php:494]
6804 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
6804 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
6804 .|    |    Starting a new session [client.php:599]
6804 .|    |    ST or PT 'ST-12703-OLKIRQV1ZZUioEXY7Hh0-cas' found
[client.php:676]
6804 .|<= ''
6804 .<= ''
6804 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
6804 .<= ''
6804 .=>  phpCAS::forceAuthentication() [login.php:90]
6804 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
6804 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
6804 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
6804 .|    |    |    |    no user found [client.php:1104]
6804 .|    |    |<= false
6804 .|    |    |    PT `ST-12703-OLKIRQV1ZZUioEXY7Hh0-cas' is present
[client.php:1002]
6804 .|    |    |    =>  CASClient::validatePT('', NULL, NULL)
[client.php:1003]
6804 .|    |    |    |    =>  CASClient::getURL() [client.php:480]
6804 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
6804 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
6804 .|    |    |    |    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxyValidate?service=https%3A%2F%2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%3D%252Findex.php&ticket=ST-12703-OLKIRQV1ZZUioEXY7Hh0-cas',
 '', NULL, NULL, NULL) [client.php:2504]
6804 .|    |    |    |<= true
6804 .|    |    |    |    =>
CASClient::renameSession('ST-12703-OLKIRQV1ZZUioEXY7Hh0-cas')
[client.php:2567]
6804 .|    |    |    |    |    Session ID:
ST12703OLKIRQV1ZZUioEXY7Hh0cas [client.php:737]
6804 .|    |    |    |    |    Restoring old session vars
[client.php:740]
6804 .|    |    |    |<= ''
6804 .|    |    |<= true
6804 .|    |    |    PT `ST-12703-OLKIRQV1ZZUioEXY7Hh0-cas' was
validated [client.php:1004]
6804 .|    |    |    =>  CASClient::getURL() [client.php:1029]
6804 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
6804 .|    |    |    =>  CASClient::getURL() [client.php:1030]
6804 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
6804 .|    |    |    Prepare redirect to :
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php
6804 .|    |<= true
6804 .|    |    no need to authenticate [client.php:870]
6804 .|<= true
6804 .|    no need to authenticate (user `jrosental' is already
authenticated) [CAS.php:985]
6804 .<= ''
6804 .=>  CASClient::retrievePT('imap://localhost', NULL, NULL)
[CAS.php:1409]
6804 .|    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxy?targetService=imap%3A%2F%2Flocalhost&pgt=',
 '', NULL, NULL, '') [client.php:2054]
6804 .|<= true
6804 .|    domxml_open_mem() failed [client.php:2067]
6804 .<= false
C576 .START phpCAS-1.1.2 ****************** [CAS.php:494]
C576 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
C576 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
C576 .|    |    Starting a new session [client.php:599]
C576 .|<= ''
C576 .<= ''
C576 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
C576 .<= ''
C576 .=>  phpCAS::forceAuthentication() [login.php:90]
C576 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
C576 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
C576 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
C576 .|    |    |    |    no user found [client.php:1104]
C576 .|    |    |<= false
C576 .|    |    |    no ticket found [client.php:1024]
C576 .|    |<= false
C576 .|    |    =>  CASClient::redirectToCas(false) [client.php:877]
C576 .|    |    |    =>  CASClient::getServerLoginURL(false, false)
[client.php:1121]
C576 .|    |    |    |    =>  CASClient::getURL() [client.php:360]
C576 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
C576 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
C576 .|    |    |<=
'https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php'
C576 .|    |    |    Redirect to :
https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php
C576 .|    |    |    exit()
C576 .|    |    |    -
C576 .|    |    -
C576 .|    -
5F01 .START phpCAS-1.1.2 ****************** [CAS.php:494]
5F01 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
5F01 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
5F01 .|    |    Starting a new session [client.php:599]
5F01 .|    |    ST or PT 'ST-12704-RmRFQraUi23dNv56MElx-cas' found
[client.php:676]
5F01 .|<= ''
5F01 .<= ''
5F01 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
5F01 .<= ''
5F01 .=>  phpCAS::forceAuthentication() [login.php:90]
5F01 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
5F01 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
5F01 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
5F01 .|    |    |    |    no user found [client.php:1104]
5F01 .|    |    |<= false
5F01 .|    |    |    PT `ST-12704-RmRFQraUi23dNv56MElx-cas' is present
[client.php:1002]
5F01 .|    |    |    =>  CASClient::validatePT('', NULL, NULL)
[client.php:1003]
5F01 .|    |    |    |    =>  CASClient::getURL() [client.php:480]
5F01 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
5F01 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
5F01 .|    |    |    |    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxyValidate?service=https%3A%2F%2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%3D%252Findex.php&ticket=ST-12704-RmRFQraUi23dNv56MElx-cas',
 '', NULL, NULL, NULL) [client.php:2504]
5F01 .|    |    |    |<= true
5F01 .|    |    |    |    =>
CASClient::renameSession('ST-12704-RmRFQraUi23dNv56MElx-cas')
[client.php:2567]
5F01 .|    |    |    |    |    Session ID:
ST12704RmRFQraUi23dNv56MElxcas [client.php:737]
5F01 .|    |    |    |    |    Restoring old session vars
[client.php:740]
5F01 .|    |    |    |<= ''
5F01 .|    |    |<= true
5F01 .|    |    |    PT `ST-12704-RmRFQraUi23dNv56MElx-cas' was
validated [client.php:1004]
5F01 .|    |    |    =>  CASClient::getURL() [client.php:1029]
5F01 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
5F01 .|    |    |    =>  CASClient::getURL() [client.php:1030]
5F01 .|    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
5F01 .|    |    |    Prepare redirect to :
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php
5F01 .|    |<= true
5F01 .|    |    no need to authenticate [client.php:870]
5F01 .|<= true
5F01 .|    no need to authenticate (user `jrosental' is already
authenticated) [CAS.php:985]
5F01 .<= ''
5F01 .=>  CASClient::retrievePT('imap://localhost', NULL, NULL)
[CAS.php:1409]
5F01 .|    =>
CASClient::readURL('https://anarchy.mydomain.com:8443/cas/proxy?targetService=imap%3A%2F%2Flocalhost&pgt=',
 '', NULL, NULL, '') [client.php:2054]
5F01 .|<= true
5F01 .|    domxml_open_mem() failed [client.php:2067]
5F01 .<= false
AD07 .START phpCAS-1.1.2 ****************** [CAS.php:494]
AD07 .=>  phpCAS::client('2.0', 'anarchy.mydomain.com', 8443, '/cas')
[login.php:71]
AD07 .|    =>  CASClient::CASClient('2.0', false, 'anarchy.mydomain.com',
8443, '/cas', true) [CAS.php:397]
AD07 .|    |    Starting a new session [client.php:599]
AD07 .|<= ''
AD07 .<= ''
AD07 .=>  phpCAS::setNoCasServerValidation() [login.php:87]
AD07 .<= ''
AD07 .=>  phpCAS::forceAuthentication() [login.php:90]
AD07 .|    =>  CASClient::forceAuthentication() [CAS.php:969]
AD07 .|    |    =>  CASClient::isAuthenticated() [client.php:868]
AD07 .|    |    |    =>  CASClient::wasPreviouslyAuthenticated()
[client.php:973]
AD07 .|    |    |    |    no user found [client.php:1104]
AD07 .|    |    |<= false
AD07 .|    |    |    no ticket found [client.php:1024]
AD07 .|    |<= false
AD07 .|    |    =>  CASClient::redirectToCas(false) [client.php:877]
AD07 .|    |    |    =>  CASClient::getServerLoginURL(false, false)
[client.php:1121]
AD07 .|    |    |    |    =>  CASClient::getURL() [client.php:360]
AD07 .|    |    |    |    |    Final URI:
https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php [client.php:2653]
AD07 .|    |    |    |<=
'https://test.mydomain.com/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php'
AD07 .|    |    |<=
'https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php'
AD07 .|    |    |    Redirect to :
https://anarchy.mydomain.com:8443/cas/login?service=https%3A%2F%
2Ftest.mydomain.com%2Fegroupware%2Flogin.php%3Fcd%3D10%26phpgw_forward%
3D%252Findex.php
AD07 .|    |    |    exit()
AD07 .|    |    |    -
AD07 .|    |    -
AD07 .|    -

What could i do?

Note: In my setup "anarchy.mydomain.com" is my CAS server and
"test.mydomain.com" is where i've egroupware installed.

Thanks in advance.

On Wed, 2010-09-15 at 18:55 +0200, Joachim Fritschi wrote:
Please enable the phpCAS debug log:

phpCAS::setDebug($filename);

Please review it yourself and post the results. This is the only way to
solve these kinds of integration problems without access to a similar
system ;).
The debug log is extra verbose and designed to debug these kinds of
issues remotely.

Regards,

Joachim

Am 14.09.2010 18:03, schrieb Joel Rosental R.:
Hi,

I've installed egroupware 1.6 in a Debian machine and configured it to
perform CAS authentication, when i type in my browser
http://mydomain.com/egroupware) it redirects me to CAS web portal where
i put my login and password. After this, i get an error like this:

Unable to load page


Problem occured while loading the URL
http://mydomain/egroupware/login.php?cd=10&phpgw_forward=%
2Findex.php&ticket=ST-359-6TR4AhjG1KfeQMfZkUM2-cas

Too many redirects


or

This webpage has a redirect loop.
The webpage at http://mydomain/egroupware has resulted in too many
redirects. Clearing your cookies for this site or allowing third-party
cookies may fix the problem. If not, it is possibly a server
configuration issue and not a problem with your computer.



As far as i understand, egroupware by default makes some kind of
redirection from login.php to index.php and maybe some weird things with
redirects and that is creating a loop.

Any ideas?







--
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

Reply via email to