Case: After Setting CAS & LDAP in Moodle, Admin/ local user cannot login anymore to Moodle.
Solution Step:
---------------
1. Go to database server.
2. Check setting in table mdl_config_plugins. Compare with existing running moodle db.
# SELECT * FROM mdl_config_plugins WHERE PLUGIN LIKE '%auth/cas%'
3. Change manually, db setting for mdl_config.
# UPDATE mdl_config SET VALUE = 'manual' WHERE id='3';
4. Try open the site again and click Login.
The local user may login now. But CAS user cannot.
Login as moodle admin.
5. Go to CAS Setting Location:
Settings > Site administration > Plugins > Authentication > Manage authentication
** Compare the setting with running moodle site.
Found problem: cn dn setting in distinguish field.
CAS - Need to put cn dn setting in Context field.
LDAP - Put cn dn setting in distinguish field.
6. Fix cn dn setting in CAS and LDAP.
Settings > Site administration > Plugins > Authentication > Manage authentication
* Save setting for both.
7. Test open the site again and click Login.
Now the login page back to normal. User can choose either to login using CAS or other user.
* Thanks to Sis. Azlinda for the fast investigation & solution has been taken. Caiyok!!
.
Showing posts with label moodle. Show all posts
Showing posts with label moodle. Show all posts
Sunday, June 24, 2012
MOODLE: Authentication Issue- CAS Login
Thursday, May 31, 2012
UBUNTU: How TO Install MySQL-Server
Case: Ubuntu Server for Moodle Installation
Install MySQL (skip Postgresql)
Install MySQL (skip Postgresql)
sudo apt-get install mysql-server php5-mysql
- Replace the following string NewRootDatabasePassword with a secure password of your own choosing.
There is no space between the -p and the password on the second command.
mysqladmin -u root password NewRootDatabasePassword mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword
- Create the Moodle database and Moodle user in MySQL.
The mysql command will prompt for your NewRootDatabasePassword (from above). Replace NewMoodleDatabasePassword with a secure password of your own choosing.
mysql -u root -p > CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; > GRANT ALL PRIVILEGES ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'NewMoodleDatabasePassword'; > GRANT SELECT,LOCK TABLES on moodle.* TO moodlebackup@localhost IDENTIFIED BY 'MoodleBackupPassword'; > FLUSH PRIVILEGES; > QUIT
- The above also creates a backup user moodlebackup so that you can use mysqldump to make database backups without incident.
Monday, April 2, 2012
Moodle: Failed write to disk problem
"Failed to write file to disk"
I've been experience the same problem in wordpress before.
It was caused by temp folder full. So user failed to upload any files to the system.
Solution:
I've been experience the same problem in wordpress before.
It was caused by temp folder full. So user failed to upload any files to the system.
Solution:
- Check your temp folder in moodle
Eg: /mnt/data/moodle/moodledata/temp/backup/ - Delete the temp content inside this folder
- Try upload file to system
- Upload function should be ok by now.
Subscribe to:
Posts (Atom)