I *think* I know what you did. Share the code somewhere and I should be able to point out options. You will need to write code for this, I suspect, but need to see working code before I can dig in further.
You are going to have to write code, that cascades queries. This is nothing new to 5; it's an attribute repository thing. 5 does not expose this as an option, thus the need for code. --Misagh -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jeffrey Simpson Sent: Wednesday, June 7, 2017 4:22 PM To: [email protected] Subject: [cas-user] Attribute Repository using other than username I am trying to upgrade my CAS installation from 3.5 to 5.1. I need to query a database for security roles. The problem I am having is that they are not keyed on the user's username. They are keyed on a id that we keep in LDAP. I can get the LDAP authentication to return the ID fine but all of the AttributeRepositories seem to only take username as the input. In 3.5 I extended AbstractDefaultAttributePersonAttributeDao made it the attribute repository and on the constructor passed in a LdapPersonAttributeDao which I called to populate the attributes from LDAP. Then got the ID out of them and did my query. Is there a way to access the attributes from the Attribute Repositories? Any Ideas? Jeffrey Simpson | Senior Software Engineer Youth For Understanding USA (p) 202.774.5266 (f) 202.588.7571 -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/BN6PR1001MB2049C8C3645C904C343F3E2FB1CB0%40BN6PR1001MB2049.namprd10.prod.outlook.com. -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/020c01d2dfcd%241800a1b0%244801e510%24%40unicon.net.
