Lock user with a number of failed attempt

Is it possible to lock the user (automatically) when reaching a defined maximum number of failed attempts?

I cannot find this option/function, please advise.

Of course, the administrator has right to unlock / reset the number of attemps.