Hi Moodler, Good day.
I have few problems here.
Currently im using moodle 1.9.8v for my community. The moodle running well on single webapps machine (apache 2 + php 5) and single dbmachine (mysq; 5) for currently 3000 users.
Im currently adding 1 more webapps into the system structure which will make 2 webserver and 1 dbserver. The 2 webserver will be load into load balancer machine.
The 2nd webserver is still under testing right now and not yet activate under LB. But thereis problem with the 2nd webserver that stuck me for two days now.
The problem is with the authentation part. My current working moodle do auth with CAS server for SSO.
What I do acctually just copy the source from webserver 1 to webserver to and just modify the apporiate param in config.php in webserver 2.
doing that the CAS making an unfinity redirect which make the firefox reply with this warning message 'The page isn't redirecting properly' which make the webserver 2 did not get the CAS login page as webserver 1.
I dig deeper into CAS lib tracing the call function and dead end at the CAS/CAS/client.php lib in func checkAuthentication which somehow S_SESSION['phpCas'] have no value. Seems to me my config for CAS at webserver 2 wrong. But the setting and config for CAS in moodle stored in DB, so for my case webserver 2 also has the same CAS setting as webserver 1 and should work. Do anyone know why ? any clue ?
Fail to auth with CAS I did some bypass to login/index,php to skip load CAS auth module seems I cannot close CAS auth parmanently in mdl_config coz user activities in webserver 1. By doing that I hope to able log in with manual auth for user admin ( I set auth = 'manual' for admin record in mdl_user )
But another problem surface, I wont able to log in although the pass n username is correct. Dig in mysql log I discover the query not using my admin password but using 'restored' :
-> SELECT * FROM mdl_user WHERE username = 'admin' AND mnethostid = '1' AND password = 'restored' LIMIT 1
why this happen im not sure. anybody have any idea ? any clue ?
thanxs in advance.