Fellas,

I am having hard time with these attributes. Any tips/pointers would be of
great help. thanks!


Q1: How to assign one attribute value to multiple headers.

 {
    @class: org.apereo.cas.services.ReturnMappedAttributeReleasePolicy
..
..
    {
      @class: java.util.TreeMap
      uid: APP_USER
      uid: USER_NAME
    }


Q2: How to change the attribute name for the output of groovy script.
displayname is the LDAP attribute name, and it should be mapped to
DISPLAY_NAME for the app.

    {
      @class: java.util.TreeMap
      "displayname" : "groovy { return  attributes['displayname']+'-Corp'
}"  -> works for the default name displayname
      "DISPLAY_NAME" : "groovy { return  attributes['displayname']+'-Corp'
}" -> doesn't work ... and it expects DISPLAY_NAME to be LDAP Attribute
    }

Q3: Groovy Script question: how to convert the case ? the following doesn't
work

    {
      @class: java.util.TreeMap
      "uid" : groovy { return toUpperCase(attributes['uid']) }"
    }


Q4: Groovy Script question: how to find replace a character in the
attribute value ?

    {
      @class: java.util.TreeMap
      "cn" : "groovy { def s=attributes['cn'] return s.replaceAll(~/ /, "")
}"
    }

-- 
- 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/CACNfiMLTBBvU6kzyX4YzgCU%3D8LbFG0kSFqALpJ75pAFdBm%2BrPA%40mail.gmail.com.

Reply via email to