Change on LdapUserProvider to fit last devs

TO BE CHECKED 
This file is working on my env so I publish it for information. Please review :)