SSH/PAM non-authorized login attempts: print default message
I've set up SSH/PAM to user netgroups to decide whether a (LDAP) user should be able to access the server or not (i.e. if the user is authorized or not). Is there any way I can define an error message that will be displayed to users who are are deemed not authorized?
A type of functionality similar to /etc/nologin would be perfect, as the message would be displayed and helt before the connection is broken.