spring security - overriding message [LDAP: error code 32 - No Such Object]; nested exception is javax.naming.NameNotFoundException -


i'm using spring ldap security authenticate users. in .jsp have:

<c:if test="${not empty param.login_error}">    <div class="errortext">${sessionscope['spring_security_last_exception'].message}</div> </c:if> 

i successful in overriding default messages in springframework/security , changed them bad credentials incorrect username/password.

my problem: when enter invalid ldap user correct error message:

[ldap: error code 32 - no such object]; nested exception javax.naming.namenotfoundexception: [ldap: error code 32 - no such object]; remaining name '' 

what like: override message more user friendly 1 have overridden bad credentials message.

thanks in advance suggestions.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -