Implemented an Active Directory authentication realm.