How to reset phpCAS configuration

How to reset phpCAS configuration

by Shang C. Kao -
Number of replies: 2

Hi,

I am a new user of moodle and just installed it of PHP/5.3.10+Apache/2.2.22+mysql/5.5.22 on ubuntu 12.04 LTS. I tried to configure CAS and LDAP but with a wrong setting of configuration and got the error message as below when login:

phpCAS error: phpCAS::client(): bad CAS server port (`aaa.bbb.com) in /var/www/moodle/auth/cas/auth.php on line 192

Now I can't login to moodle for the above message by using any user account, can I remove/reset the configuration from ubuntu or any way to change it back for using moodle admin account for re-configuration? 

Thanks,

Shang

Average of ratings: -
In reply to Shang C. Kao

Re: How to reset phpCAS configuration

by jason everling -

You can use the below to login as the site admin using,

http://URL TO MOODLE/login/index.php?username=adminusername

If using https for logins, add https to the beginning, if not then you will still get redirected to CAS.

This will bring up the manual login page, hopefully you left the admin account as a manual account.

If you did change it, post back here, you can also go into the database and change it back manually.

 

JASON

In reply to Shang C. Kao

回應: How to reset phpCAS configuration

by Shang C. Kao -

Hi Jason,

 

Thank you very much for your help, it works to login as admin.

 

Regards,

Shang