title: CAS 6.2.0-RC1 cannot authenticate LDAP users
body: <p>I am configuring CAS 6.2.0-RC1 with LDAP on the same machine Ubuntu 18.04</p>
  
  <p>All authentication tests fail, i noticed after launching Wireshark that CAS sends to LDAP the SHA-1 </p>
  
  <p>hash of the password and when comparing LDAP returns False response.</p>
  
  <p>When i display the LDAP entries i've found that effectively  the password hash does not match.</p>
  
  <p>Here is my cas.properties configuration and the displayed authentication error.</p>
  
  <p>cas.properties:</p>
  
  <pre><code>cas.server.name=https://127.0.0.1:8443
  cas.server.prefix=${cas.server.name}/cas
  
  logging.config: file:/etc/cas/config/log4j2.xml
  
  cas.authn.accept.users=
  cas.authn.ldap[0].type=AUTHENTICATED
  cas.authn.ldap[0].ldapUrl=ldap://127.0.0.1:389
  cas.authn.ldap[0].useSsl=false
  cas.authn.ldap[0].subtreeSearch=true
  cas.authn.ldap[0].baseDn=ou=groups,dc=localhost,dc=slapd
  cas.authn.ldap[0].searchFilter=uid={user}
  cas.authn.ldap[0].bindDn=cn=admin,dc=localhost,dc=slapd
  cas.authn.ldap[0].bindCredential=1234
  
  cas.authn.ldap[0].principalAttributePassword=userPassword
  cas.authn.ldap[0].principalAttributeList=cn,uid,givenName
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>2020-01-13 02:45:21,729 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - &lt;Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [UsernamePasswordCredential(username=user, source=null, customFields={})] of type [UsernamePasswordCredential]. Examine the configuration to ensure a method of authentication is defined and analyze CAS logs at DEBUG level to trace the authentication event.&gt;
  </code></pre>