issue 19

solved active directory problem
issue #19 solved active directory problem