Hi, 
I'm trying to add groovy script to LDAP attribute repo search with :

cas.authn.attribute-repository.ldap[0].searchFilter=file:/etc/cas/config/x509_groovy_filter.groovy

But in the logs I only see:

 <Constructed LDAP search query 
[file:/etc/cas/config/x509_groovy_filter.groovy]>#033[m
Aug 26 13:21:19 caspre java: #033[36m2021-08-26 13:21:19,466 DEBUG 
[org.apereo.services.persondir.support.ldap.LdaptivePersonAttributeDao] - 
<Generated query builder 
'[org.ldaptive.FilterTemplate@1585727788::filter=file:/etc/cas/config/x509_groovy_filter.groovy,
 
parameters={}]' from query Map {principal=[[subjectDn=CN=...

and this error:
[org.apereo.services.persondir.support.MergingPersonAttributeDaoImpl] - 
<Recovering From Exception thrown by 
'org.apereo.services.persondir.support.ldap.LdaptivePersonAttributeDao@ab327c'>#033[m
Aug 26 13:21:19 caspre java: java.lang.IllegalArgumentException: 
org.ldaptive.filter.FilterParseException: Invalid extensible expression, no 
data after ':'
Aug 26 13:21:19 caspre java: at 
org.ldaptive.SearchRequest.setFilter(SearchRequest.java:414) 
~[ldaptive-2.1.0.jar!/:?]
Aug 26 13:21:19 caspre java: at 
org.apereo.services.persondir.support.ldap.LdaptivePersonAttributeDao.createRequest(LdaptivePersonAttributeDao.java:242)
 
~[person-directory-impl-2.0.9.jar!/:?]
Aug 26 13:21:19 caspre java: at 
org.apereo.services.persondir.support.ldap.LdaptivePersonAttributeDao.getPeopleForQuery(LdaptivePersonAttributeDao.java:172)
 
~[person-directory-impl-2.0.9.jar!/:?]
Aug 26 13:21:19 caspre java: at 
org.apereo.services.persondir.support.ldap.LdaptivePersonAttributeDao.getPeopleForQuery(LdaptivePersonAttributeDao.java:54)
 
~[person-directory-impl-2.0.9.jar!/:?]
....

maybe i forgot some config setting:

cas.authn.attribute-repository.ldap[0].id=ldap_attrRepository
cas.authn.attribute-repository.ldap[0].order=0

cas.authn.attribute-repository.ldap[0].ldapUrl=[redacted]
cas.authn.attribute-repository.ldap[0].baseDn=[redacted]
cas.authn.attribute-repository.ldap[0].searchFilter=file:/etc/cas/config/x509_groovy_filter.groovy
cas.authn.attribute-repository.ldap[0].bindDn=[redacted]
cas.authn.attribute-repository.ldap[0].bindCredential=[redacted]



-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/908c39e2-c903-48cd-931b-2c67d4123b98n%40apereo.org.

Reply via email to