Fix for authentication in a HA setup