Added support for external authentication (e.g. ActiveDirectory via sss)