Is there a way to setup OpenLDAP on a Linux (Redhat/CentOS) system so that when a user is removed from the LDAP server or he/she is removed from the "login is authorized" group, all his/her open terminal sessions are immediately (or quickly) closed ?
The sequence I'm looking for is :
- user1 is logged in via PAM/LDAP with a bash session
- another user with LDAP-admin-rights removes the user from the LDAP database (or removes the user from the group that can log-in to this system )
- what I would like : the bash session is stopped
I couldn't find any option to do that, except limiting the duration of sessions and waiting for the end the session.