2018
Updated Mark Ellzey Thomas's AFL patch for 4.0.4.28
Many years ago, Mark wrote a patch to temporarily disable users if a passwords are entered in wrong. I require this patch for reasons too banal to mention and perhaps you do too. So, here it is:
https://gist.github.com/helpdeskdan/1358d005ae1277bffdf67d66d956d919
The original how to by the author is here:
http://www.shrubbery.net/pipermail/tac_plus/2009-September/000508.html
Last, but not least, I require PAM for enable. (Why wouldn't you want everything the same?) This patch has some implicit declares that make my teeth grind, but basically accomplishes what it says it does. I've combined it with the AFL patch and posted the two in one patch here:
https://gist.github.com/helpdeskdan/07a94bd711cb7bb2d7d53feb70425cf8
Fabric OS
This thing was a pain to get working, an example of the correct brocade av pairs is as follows:
service = exec {
brcd-role = admin
brcd-AV-Pair1 = "homeLF=128;LFRoleList=admin:1,3,4;securityAdmin:5,6"
brcd-AV-Pair2 = "chassisRole=admin"
}
As for do_auth, this completely breaks it. I am thinking of adding an option to completely replace the pairs for weird/special things just like this.