ability to throw LDAP exception

This is a pull request to manage LDAP exception differently, to throw execptions if necessary. This allow Maven to exit with BUILD FAILURE, if an LDAP exception is raise.