It works now
I added the LDAP dependency before building the project and change cas.properties
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldap://localhost:389
cas.authn.ldap[0].useSsl=false
cas.authn.ldap[0].useStartTls=false
cas.authn.ldap[0].connectTimeout=5000
cas.authn.ldap[0].baseDc=dc=example,dc=com
cas.authn.ldap[0].baseDn=ou=users,dc=example,dc=com
cas.authn.ldap[0].userFilter=uid={user}
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].usePasswordPolicy=false
cas.authn.ldap[0].bindDn=cn=admin,dc=example,dc=com
cas.authn.ldap[0].bindCredential=*
...
cas.authn.ldap[0].type=DIRECT cas.authn.ldap[0].useSsl=false cas.authn.ldap[0].ldapUrl=ldap://ldap.domain.fr:388 cas.authn.ldap[0].baseDn=uid=%s,ou=people,dc=domain,dc=fr
cas.authn.ldap[0].type=ANONYMOUS cas.authn.ldap[0].useSsl=false cas.authn.ldap[0].ldapUrl=ldap://ldap.domain.fr:388 cas.authn.ldap[0].baseDn=ou=people,dc=domain,dc=fr
cas.authn.ldap[0].dnFormat=ou=people,dc=domain,dc=fr
cas.authn.ldap[0].userFilter=otherLoginId={user}
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/d9f6a60d-3985-467d-be87-36932ac745af%40apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CACzFFAbrkL83tjzj6UtHPbnQMyZNbS1Nbo-tMmFJRf6xzw3JRg%40mail.gmail.com.