title: overriding message [LDAP: error code 32 - No Such Object]; nested exception is javax.naming.NameNotFoundException
body: <p>I'm using Spring LDAP security to authenticate users. In my .jsp I have:</p>
  
  <pre><code>&lt;c:if test="${not empty param.login_error}"&gt;
     &lt;div class="errorText"&gt;${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}&lt;/div&gt;
  &lt;/c:if&gt;
  </code></pre>
  
  <p>I was successful in overriding the default messages in Springframework/security and changed them from Bad credentials to Incorrect username/password.</p>
  
  <p><b>My problem:</b>
  When I enter an invalid LDAP user I get a correct error message:</p>
  
  <pre><code>[LDAP: error code 32 - No Such Object]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name ''
  </code></pre>
  
  <p><b>What I would like:</b> Override this message with a more user friendly one just as I have overridden the Bad credentials message.</p>
  
  <p>Thanks in advance for any suggestions.</p>