Invalid LDAP URL

24 views
Skip to first unread message

Colin Ryan

unread,
Apr 28, 2021, 3:26:24 PM4/28/21
to cas-...@apereo.org
Folks,

CAS 6.2.7


According to numerous sources I should be able to put a comma or space
seperated list of URLs in various uses of the ldap-url configuration
parameter.

However whenever I do so I get invalid URL when starting up.

eg.


cas.authn.pm.ldap[0].ldap-url: ldap://ldap1:3131 ldap://ldap2:3131

cas.authn.ldap[0].ldap-url: ldap://ldap1:3131 ldap://ldap2:3131

I get the following


Failed to instantiate [java.util.List]: Factory method
'ldapAttributeRepositories' threw exception; nested exception is
java.lang.IllegalArgumentException: Invalid LDAP URL: ,ldap://ldap2:3131

These multiple URL's are multi-master replica's of each other.


Thoughts

Colin

King, Robert

unread,
Apr 29, 2021, 9:23:34 AM4/29/21
to cas-...@apereo.org
This example ldap-url works in my environments standalone cas.properties:

cas.authn.ldap[0].ldap-url=ldaps://ldap1.example.com,ldaps://ldap2.example.com,ldaps://ldap3.example.com,ldaps://ldap4.example.com

using commas as separator and no spaces in the string
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
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/3ad84f96-2ed1-c4a0-12af-352a24d3c5b4%40caveo.ca.
Reply all
Reply to author
Forward
0 new messages