I would like to execute a command every time a user is authenticating on the server.
As for now, the only way I can "detect" a valid authentication is by looking at the logs in /var/log/auth.log
. As logs are not meant to be used as triggers, I'd like to use a more state-of-the-art method.
Is there any reliable way to detect authentication on my KDC server ?