Added support for ActiveDirectory authentication