Hi, 
Has anyone managed to get a groovy script to work as a filter in an 
attribute repository?

I have this conf:

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

cas.authn.attribute-repository.ldap[0].ldapUrl=redacted
cas.authn.attribute-repository.ldap[0].baseDn=redacted
cas.authn.attribute-repository.ldap[0].bindDn=redacted
cas.authn.attribute-repository.ldap[0].bindCredential=redacted

cas.authn.attribute-repository.ldap[0].search-filter=file:/etc/cas/prueba_script.groovy

cas.authn.attribute-repository.ldap[0].attributes.sAMAccountName=usuario
cas.authn.attribute-repository.ldap[0].attributes.givenname=givenname
cas.authn.attribute-repository.ldap[0].attributes.sn=sn
cas.authn.attribute-repository.ldap[0].attributes.cn=cn

in logs i see the "file:/etc/..." as string in the configuration time:
2022-09-02 13:18:29,972 DEBUG 
[org.apereo.cas.config.CasPersonDirectoryLdapConfiguration] - <LDAP 
attributes are fetched from [ldaps://XXXXXXXXXXX] via filter 
[file:/etc/cas/prueba_script.groovy]>

I checked the code a little and think that there is not link in the classes 
to intercept the groovy script.

There are something I  missed?? 

Thanks in advance.

-- 
- 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/90bfe2a0-c1e1-4a74-a188-23ad88a22f28n%40apereo.org.

Reply via email to