Request for assistance with CAS and OpenLDAP integration

37 views
Skip to first unread message

Thảo Bùi

unread,
Mar 16, 2023, 1:50:30 AM3/16/23
to CAS Community
Hi guys,
I hope this email finds you well. I am writing to request your assistance with integrating CAS and OpenLDAP for my SSO system.
I have already installed CAS 6.6.5 on Tomcat 9 in Ubuntu and now I would like to integrate it with OpenLDAP. Unfortunately, I have been unable to find any documentation on how to configure this integration.
I am hoping that you can provide me with guidance on how to proceed. Specifically, I would greatly appreciate it if you could provide me with any relevant documentation, tutorials, or tips for integrating CAS and OpenLDAP.
Thank you for your time and I look forward to hearing back from you soon.

Best regards,
Phuong Thao

Vincent Delhommmeau

unread,
Mar 17, 2023, 7:41:39 AM3/17/23
to CAS Community, pth...@gmail.com
Hi,

1) you must add the dependancy in build.gradle for ldap support

implementation "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"

2) then you configure it in cas.properties. here is a sample :

cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldap://ldap1.domain.com:389 ldap://ldap2.domain.com:389
cas.authn.ldap[0].baseDn=ou=people,dc=domain,dc=com
cas.authn.ldap[0].searchFilter=uid={user}
cas.authn.ldap[0].dnFormat=uid=%s,ou=people,dc=domain,dc=com
cas.authn.ldap[0].pool-passivator=NONE
cas.authn.attribute-repository.ldap[0].pool-passivator=NONE
cas.authn.ldap[0].principalAttributeList=uid,mail,displayName ...

you will have to adapt it to your environment

Regards,
Reply all
Reply to author
Forward
0 new messages