Moodle-Cannot login
From Jonsdocswiki
In the event of Moodle failing to login there should be an error presented to the user.
Contents |
Returns me to the front page
Symptoms
Users are returned to the front page after attempting to login with no error shown and the user remained logged out. After some checks it was discovered the moodledata directory was no longer world writeable.
Fix
Ensure the moodledata directory on the server is world writeable (that is, in Linux mode xy7 (where xy is set appropriately)).
There is no need to reboot the server after this change, it is effective immediately.
Fix 2
If users are authenticating via LDAP and the LDAP servers are not contactable, for example because the IP addresses have changed, you will also get this symptoms. In the event of an IP address change you can correct the path to the LDAP server in the MySQL database:
- Login to mysql
- Browse the PREFIX_config_plugins table (in this case bcgs_config_plugins)
- Edit the row with plugin=auth/ldap and name=host_url so the value column contains the correct information.
Invalid login claimed
Symptoms
During the school day, on company owned equipment, the user can login to Moodle with no problem. When attempting the same from home the user is told Invalid login, please try again.
Fix
I only worked this out as I happened to be remoted into work out of hours. Attempting to login to a workstation as the user gave: Your account has time restrictions that prevent you from logging on at this time. Please try again later. Check the user's account permissions and ensure the account is permitted to logon at the relevant hours - Moodle requires a positive logon response to Active Directory in order to log the user in through LDAP.
