Fix issue #5 -  Cannot assign by reference to overloaded object
Fork and refactor
Allow login only from ActiveDirectory (setting only_ad_logins)