CAS SSO Invalid Login error

CAS SSO Invalid Login error

Michael Dahlberg發表於
Number of replies: 4

I recently completed the upgrade of our Moodle test instance from version
3.4.3-LAE14.0.2 to 3.4.6-LAE14.0.5 (this is the Liberal Arts Edition from
CLAMP).  We are using the CAS-SSO plugin to do single signon and this was
working perfectly under 3.4.3.  The upgrade process was fairly standard:
expanded the tar.gz file, move the old config.php over to the new directory,
pointed Apache's DocRoot to the new directory, and restarted the web service
(I also copied over the directories of the plugins/themes that are not part
of the standard LAE version).

When I accessed the new site for the first time, our CAS login page was displayed
and I successfully entered my University creds into the login page.  I was
then returned to the (/login/index.php) Moodle login page with the error
message "Invalid login, please try again".  If I again enter my credentials into
this form, I can gain admin access to the Moodle instance.  Completing
the automated upgrade process (I believe it was an "upgrading the database"
and then upgrading the existing plugins and themes), resulted in the same
behavior.
 
I've tried setting the debug level to "4:All relevant PHP error Messages" 
and looking at the CAS SSO settings within the Authentication section of
the plugins.  Neither produced any help.
 
I would welcome any suggestions on what may be wrong or how to troubleshoot   
this problem.
 
Thanks,
Mike

評比平均分數: -
In reply to Michael Dahlberg

Re: CAS SSO Invalid Login error

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

I would guess either folder permissions or something with you referencing a different folder in the webserver instead of renaming the new installation to the old installation name.  

In reply to Emma Richardson

Re: CAS SSO Invalid Login error

Michael Dahlberg發表於

I wish that were the answer.  Unfortunately, no.  I tried resetting the ownership on the directory and made sure the DocRoot was set correctly in the httpd.conf file.  This did not help resolve the problem.

Thanks for the response, though.

Mike

In reply to Michael Dahlberg

Re: CAS SSO Invalid Login error

Guido Roessling發表於
Particularly helpful Moodlers的相片 Plugin developers的相片

This is a known bug (see https://tracker.moodle.org/browse/MDL-63994?jql=text%20~%20%22disablelogintoken%22).

To circumvent it, go to your configuration file (config.php) and add the following line:

$CFG->disablelogintoken = true;
After that, the login via CAS should work again.

Also, it works for us even without this (unrecommended!) configuration option now after upgrading to 3.6 (not a "beta").

In reply to Guido Roessling

[SOLVED] Re: CAS SSO Invalid Login error

Michael Dahlberg發表於

Guido:

Thank you, thank you, THANK YOU!  That worked.

Unfortunately, we're kinda tied to the LAE version and they're usually a few releases behind.  Currently, they only have 3.4 and 3.5 out.

Thanks again,

Mike