CAS + LDAP

94 views
Skip to first unread message

Nour Krichene

unread,
Apr 5, 2017, 9:35:29 AM4/5/17
to CAS Community
hello
have you a guide (step by step) for using CAS (4 or 5 ) with LDAP (OpenLDAP)
with maven on Ubuntu
?
I followed the instructions in the documentation but it did not work
Thank you

Nour Krichene

unread,
Apr 6, 2017, 4:18:33 AM4/6/17
to CAS Community

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=*
...

Francis

unread,
Apr 6, 2017, 7:26:34 AM4/6/17
to CAS Community
Authentication via UID:
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

OR Authentication with other id:
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}

A little too late but might serve someone.

Fabien Berteau

unread,
Apr 6, 2017, 9:13:30 AM4/6/17
to CAS Community
Hello
I have no doc for the moment. I am currently working on that and I suppose I will be ready for june 2017.

--
- 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.

Nour Krichene

unread,
Apr 7, 2017, 9:56:51 AM4/7/17
to jasig-cas-user, cas-...@apereo.org, fabien....@gmail.com
Reply all
Reply to author
Forward
0 new messages