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 /www/moodle/auth/cas/auth.php on line 111


The output of the CAS server looks "normal", in a way:

2009-10-19 12:03:38,323 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <AuthenticationHandler: org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler successfully authenticated the user which provided the following credentials: [username: user]> 2009-10-19 12:03:38,328 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket [ST-1-s0gQhWMEptjvmuXN0Igy-cas] for service [https://myserver/devmoodle/login/index.php] for user [user]>

Line 111 of auth.php is simply the check on authentication method:
        if (phpCAS::checkAuthentication()) {
               $frm->username=phpCAS::getUser();
//              if (phpCAS::getUser()=='esup9992')
//                      $frm->username='erhar0062';
               $frm->password="passwdCas";
               return;
        }


I wonder here if there's some issue with my certificate. Any idea?

Thanks a lot for any help!

Giuseppe


Diego Benedicto wrote:
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 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
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, I get a sequence of (incrementally numbered) "Granting service tickets" that lead to nowhere (infinite loop on Explorer) or to a "Redirect loop" error on Firefox.

Has anyone any idea of where this originates? I've read somewhere that it could depend of the self-signed certificate I'm currently using for testing, but found no hint about this on the wiki.

Any help would be highly appreciated!

Thanks,
Giuseppe

--
Giuseppe Sollazzo
Systems Developer / Administrator

Computing Services
St. George's, University of London


--
You are currently subscribed to cas-user@lists.jasig.org as:
li...@nabble.com
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user


--
Giuseppe Sollazzo
Systems Developer / Administrator

Computing Services
St. George's, University of London


--
You are currently subscribed to cas-user@lists.jasig.org as:
li...@nabble.com
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user





--
Giuseppe Sollazzo
Systems Developer / Administrator

Computing Services
St. George's, University of London


--
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to