detect some errors in LDAP auth and throw exceptions
Merge pull request #3 from helix84/ldap-throw-errors

detect some errors in LDAP auth and throw exceptions