# No specific error message when login failed when using LDAP authentication

**URL:** <https://forum.keycloak.org/t/no-specific-error-message-when-login-failed-when-using-ldap-authentication/31353>\
**Category:** Miscellanaeous\
**Tags:** authentication, ldap\
**Created:** [May 4, 2026, 6:50am UTC](https://forum.keycloak.org/t/no-specific-error-message-when-login-failed-when-using-ldap-authentication/31353 "2026-05-04T06:50:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mbonn](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mbonn/32/5755_2.png) [@mbonn](https://forum.keycloak.org/u/mbonn)\
**Post date:** [May 4, 2026, 7:56am UTC](https://forum.keycloak.org/t/no-specific-error-message-when-login-failed-when-using-ldap-authentication/31353/2 "2026-05-04T07:56:41Z")

</div>

Keylcoak does not know if there is a legal user or an attacker. So showing a generic “invalid username or password” is the only option here.

---

_[View the full topic](https://forum.keycloak.org/t/no-specific-error-message-when-login-failed-when-using-ldap-authentication/31353)._
