Sorry, forgot the reference: https://github.com/apereo/person-directory
> From: "Misagh Moayyed" <[email protected]> > To: [email protected] > Sent: Wednesday, October 18, 2017 1:01:47 PM > Subject: Re: [cas-user] Create and Return Custom Attribute > You need to set up a merging-attribute repository, where one is what you have > and the second is one based on a groovy script, and you let the groovy script > build the attribute by coding that logic in there. Results are merged and > collected. Then you return the attribute you build as usual. Alternatively, > you > let AD auto-build the attribute somehow and you fetch like any other > attributes; alternatively you find an attribute in AD that matches what you > need, if any. Alternatively, you switch to 5 and do this in 1 line. >> From: "Whittaker, Geoffrey" <[email protected]> >> To: [email protected] >> Sent: Wednesday, October 18, 2017 12:27:35 PM >> Subject: [cas-user] Create and Return Custom Attribute >> I’m on version 4.2.7 and have a new service coming online which I need some >> help >> with. The service expects an email address as the username in a specific >> format, but the AD email entry is the user’s email alias and thus doesn’t >> always match. >> For example: >> Joe User logs into the application with JUser123 as their username. This >> matches >> their AD username. However, the CAS client application is looking for >> [email protected] . Since Joe User set up an email alias of >> [email protected] that is what’s returned as the principle ID. Since the >> application is looking for [email protected] , it’s failing to match up. >> I need to make a custom attribute that takes the username the user entered, >> appends “@myschool.edu” and passes that back as the principle ID. I know how >> to >> set the principleID in Cas-Management, but I need to figure out how to build >> that value. >> Can anybody point me in the direction of some documentation to accomplish >> this? >> Thanks, >> Geoff >> -- >> - 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/7ddeff9331f44685af620cca2ea0f446%40neptune2.unfcsd.unf.edu >> . > -- > --Misagh > -- > - 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/934320051.5615235.1508356907771.JavaMail.zimbra%40unicon.net > . -- --Misagh -- - 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/729206900.5615306.1508356931221.JavaMail.zimbra%40unicon.net.
