Change to make it work with AD

Hi,

I have made some tiny changes to the file make the ldap plugin work with AD. Do you want these changes?
I can also create a specific AD version if that would be better.

Regards,
Joost