Are failed logins logged?

Forum for questions and support relating to the 1.28.x releases only.
Post Reply
careycj0219
Posts: 2
Joined: Sun Sep 27, 2015 4:52 pm

Are failed logins logged?

Post by careycj0219 » Sun Sep 27, 2015 4:57 pm

Does zoneminder log failed logins anywhere, or is it possible to enable? I've searched around with no luck so far.

User avatar
asker
Posts: 1419
Joined: Sun Mar 01, 2015 12:12 pm

Re: Are failed logins logged?

Post by asker » Sun Sep 27, 2015 7:21 pm

Yes this fix was added recently. It is not part of 1.28.1 but is part of development snapshots. It's a tiny patch to a php file. You can add it to 1.28.1 yourself.
https://github.com/knnniggett/ZoneMinde ... 66ab717576
Please don't ask me questions via PM. Feel free to post in the forums or Github

My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

careycj0219
Posts: 2
Joined: Sun Sep 27, 2015 4:52 pm

Re: Are failed logins logged?

Post by careycj0219 » Mon Sep 28, 2015 8:14 pm

That's just what I was looking for. I ended up expanding just a bit to also log the source ip address, since my goal was to use this with fail2ban.

$remoteAddr = $_SERVER['REMOTE_ADDR'];
Info( "Login successful for user \"$username\" from $remoteAddr" );
Warning( "Login denied for user \"$username\" from $remoteAddr" );

Everything is now working as expected.

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests