I have followed this guide here : https://github.com/jirutka/ssh-ldap-pubkey In order to setup a LDAP server that allows authentication requesting both Password and Public Key in order to login.
Now while all this seems like a very good idea, ssh server runs this scripts (as described in the guide) everytime someone logs in
AuthorizedKeysCommand /usr/bin/ssh-ldap-pubkey-wrapper
This will call to my LDAP server and attempt to retreive the public key for the current user. I would like to know how I could have a fallback system in the event the LDAP server is not reachable for any reasons. I have already considered a second LDAP server for redundancy, but would like to know how how to approach this locally
ps : Using CentOS 6.6