Make LDAP errors available to the application