ActiveDirectory service. Bug-fixes and refactoring