Hello,
I am trying to get attribute from LDAP but with no success since days.
So i tried a basic configuration but it doesnt work.
My basic configuration:
# Authentification LDAP
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldap://frparantgaga:389/
cas.authn.ldap[0].useSsl=false
cas.authn.ldap[0].useStartTls=false
cas.authn.ldap[0].connectTimeout=5000
cas.authn.ldap[0].baseDn=o=antalis
cas.authn.ldap[0].userFilter=(|(uid={user})(mail={user}))
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].usePasswordPolicy=true
# Credential to connect to LDAP
cas.authn.ldap[0].bindDn=cn=root,o=antalis
cas.authn.ldap[0].bindCredential=passwd
# authentication-attributes
cas.authn.ldap[0].principalAttributeList=sn,cn,mail,description
cas.authn.attributeRepository.attributes.mail=mail
cas.authn.attributeRepository.attributes.description=description
I configured my service to get all attributes
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : ".*",
"name" : "Service 3 avec theme 2",
"theme" : "theme2",
"id" : 3,
"attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
}
}
Client side the principal doesnt contain none of the configured attributes.
CAS server's logs seem to indicate that there is no attribute to release:
.AbstractRegisteredServiceAttributeReleasePolicy] - <Found principal attributes [{}] for [
seba...@gmail.com]>
I've consulted several questions about this topic on this group.
I dont understand why it doesnt work.
Could you help me ?
Thank you
Sebastien