Locked out, how to disable CAS server from auth plugin?

Locked out, how to disable CAS server from auth plugin?

by Adam Morris -
Number of replies: 2

Hi, in my imminent wisdom I was playing around with my dev version of Moodle on my laptop at school, setting it up to authenticate against our CAS server. The funny part is that the server is available only on an internal IP. Now that I'm home the login page redirects me to a non-existent web page.

Problem though is that I can't even login as admin in order to remove CAS as authentication. I have access to the course code and database. Is there a method available to me to recover my install?

Average of ratings: -
In reply to Adam Morris

Re: Locked out, how to disable CAS server from auth plugin?

by Ken Task -
Picture of Particularly helpful Moodlers

In the DB: mdl_config table auth field set to email.

Or one could do same with adding $CFG->auth=email; to config.php

Once logged on change via Moodle UI.  When 'fixed', comment out the line added in the config.php by adding // in front [may as well leave it there if you will 'play' some more smile]

'spirit of sharing', Ken

In reply to Ken Task

Re: Locked out, how to disable CAS server from auth plugin?

by Adam Morris -

Sweet, thanks. Worked like a charm.