Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-22 Thread Giuseppe Sollazzo
Hi Marvin and hi all! Ok - I managed to get the phpCAS logs to work. What happens here I think is that the ticket is not valid - but I don't know why. In this scenario I have a "setNoCasServerValidation". For the moment I think this is the easiest scenario I can create.This is the log: 4306 .

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-21 Thread Giuseppe Sollazzo
Giuseppe Sollazzo wrote: No matter if I have the setNoCasServerValidation directive or not (getting the usual error "one of the methods... must be called") I can't get anything into the logs. /tmp/phpCAS.log is empty (access rights verified), and even trying passing a file name to setDebug($

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-21 Thread Giuseppe Sollazzo
Hi Marvin, thanks for your support! Actually, I had already tried with the setDebug directive. I entered it into auth.php at the following point (as shown on the examples) $this->connectCAS(); // initialize phpCAS debug phpCAS::setDebug(); // no SSL validation for

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-20 Thread Marvin Addison
> - with the call, the browser seems to take the eternity to check it and > either stays in "waiting for > https://moodle.myserver.../devmoodle/login/index.php"; or - after over 4-5 > minutes - "CAS Authentication failed" (despite seeing from the logs that > > 2009-10-20 10:14:57,978 INFO > [org.ja

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-20 Thread Giuseppe Sollazzo
Hi Marvin, I gave a look at the phpCAS examples and it's funny. The phpCAS methods have no explicit call of any of the certificate dealing functions. So I just added a phpCAS::setNoCasServerValidation(); immediately before of the call to: if (phpCAS::checkAuthentication()) { $

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-19 Thread Marvin Addison
> Or is it maybe a configuration issue? Do I have to activate the certificate > check somewhere? Yes. Hopefully someone with Moodle experience can chime in here -- I didn't even realize Moodle used phpCAS. Once you find the right place in Moodle to configure the phpCAS client, http://www.ja-sig.

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-19 Thread Giuseppe Sollazzo
Ryan Fox wrote: The user's interaction with the cas server was successful. The problem is between the phpCAS client and CAS, when phpCAS is trying to verify the service ticket the user presented. Specifically, phpCAS wants you to either call phpCAS::setCasServerCert() to give it a certifica

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-19 Thread Ryan Fox
- "Giuseppe Sollazzo" wrote: > Ok - as you said I verified I was running phpCAS 1.0.1. Changed it to > > phpCAS 1.0.0 and what I got is a new error: > > > phpCAS error: phpCAS::checkAuthentication(): one of the methods > phpCAS::setCasServerCert(), phpCAS::setCasServerCACert() or > phpC

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-19 Thread Giuseppe Sollazzo
Ok - as you said I verified I was running phpCAS 1.0.1. Changed it to phpCAS 1.0.0 and what I got is a new error: phpCAS error: phpCAS::checkAuthentication(): one of the methods phpCAS::setCasServerCert(), phpCAS::setCasServerCACert() or phpCAS::setNoCasServerValidation() must be called. in

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-19 Thread Diego Benedicto
phpCAS downloads are in http://www.ja-sig.org/downloads/cas-clients/php/ You have a phpCAS configured in Moodle to CASifiy it, right? So, you can try it with phpCAS 1.0.0 to check if your problem remains... Giuseppe Sollazzo-2 wrote: > > Hi Diego, > interesting question - I'm actually not sur

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-19 Thread Giuseppe Sollazzo
Hi Diego, interesting question - I'm actually not sure as I think it came with CAS? How can I check it? My setup was: 1) install moodle 2) install tomcat 3) deploy the CAS webapp Thanks, Giuseppe Diego Benedicto wrote: Hi, I had the same problem CASifying Wordpress and Dokuwiki with phpCAS

Re: Re[cas-user] direction (?) loop of "Granting service ticket"

2009-10-19 Thread Diego Benedicto
Hi, I had the same problem CASifying Wordpress and Dokuwiki with phpCAS 1.0.1, but using phpCAS 1.0.0 it works perfectly Which phpCAS version are you using? Giuseppe Sollazzo-2 wrote: > > Hi all, > I'm still trying to deal with this issue: when I try to authenticate > over CAS via moodle