Layer 7 Access Management

Expand all | Collapse all

SSO Group Membership Response

Jump to Best Answer
  • 1.  SSO Group Membership Response

     
    Posted 11-18-2016 12:53 AM

    Hi

     

    CA SSO has SM_USERGROUPS response header and this pulls back the DN of each group seperate by ^.

     

     

    If the legacy application is expecting group name (cn) only seperated by comma ',' is there a configurable way to do that? 

     

    We can do it via an Active Response but wondering if there was a none-coding way to do it. One benefit is this LDAP has memberOf attribute on the user object. Anyone done something similar?

     

    Cheers



  • 2.  Re: SSO Group Membership Response
    Best Answer

    Posted 11-18-2016 01:48 AM

    Hi Huy,

     

    Just looked up the source code, unfortunately the the delimiter is hardcoded to "^".

    It's not configurable.

     

    However, you can try to post processing the returned value using another Response using Expression ??:

    Operators - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation 

    TRANSLATE Function--Replace String Value

    The TRANSLATE function replaces all occurrences of one string found within a second string with a third string. The search is case-sensitive unless the optional Boolean is set to TRUE.

    Syntax

    The TRANSLATE function has the following format:

    TRANSLATE(source_string, search_string, replace_string[, not_case_sensitive])

     

    Regards,

    Ujwol Shrestha 



  • 3.  Re: SSO Group Membership Response

    Posted 11-18-2016 03:41 AM

    Hello,

     

    Addtionally to what Urjwol siad, you can check the following :

     

    How to set expression can be done at :

     

        https://communities.ca.com/thread/241738111
        https://communities.ca.com/thread/241738164
        
    So in your case you would have to set something like

     

    Expression : TRANSLATE(%SM_USERGROUPS, '^', ',')

     

    > Works fine in my LAB

     

    Julien.



  • 4.  Re: SSO Group Membership Response

    Posted 11-18-2016 07:29 AM

    Thanks Julien for testing this out



  • 5.  Re: SSO Group Membership Response

     
    Posted 11-20-2016 12:12 AM

    Thank Ujwol, Julien.

     

    Last time I look at expressions was in the v6.0 days! 

     

    To get multi-value CN of all the groups, docops Example 1 works.

     

    Attributes and Expressions Reference - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation 

     

    Example 1

    Virtual User Attribute #GetCN set to RDN( STRING(%0),FALSE)

    ENUMERATE(SM_USERGROUPS, #GetCN)

     

    I created an Expression #GetCN and used Enumerate. Example 2 does NOT work.

    Example 2

    ENUMERATE(SM_USERGROUPS, STRING(RDN(%0, FALSE)))

     

     

    So putting it all together to get CN with commas I use:

    TRANSLATE(ENUMERATE(SM_USERGROUPS, #GetCN), '^', ',')

    The result is: