Active Directory works without a binding account

Hi, 
This is the pull request so active directory can be used a binding account. I have tested this works on AD without a binding account but am not able to test that it works on AD with a binding account (since i dont have one).

Best
Patrick