Write failed login attempts to log file

Re: Write failed login attempts to log file

by Howard Miller -
Number of replies: 1
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

To an experienced Moodle dev that would be pretty easy. 

You have to realise that what you are asking is extremely unusual - in fact unique I would suggest. 

The advantage of Moodle as an open source software solution is that if you do want to do something a bit "different" you have the option to write a plugin to do it. Or pay someone to do it. 

So - the point is - you (or someone) *can* do it. It's not Moodle's fault that you have a unique requirement that nobody has written a plugin for. 

PS. All developer documentation ever written is outdated. The linked documentation is close enough, though. 

In reply to Howard Miller

Re: Write failed login attempts to log file

by Alexander Kallenbach -

I've solved the problem quite easy. Added on line to auth_ldap.php:


error_log("Login failed",0)