Forum Discussion
Ken_Thomas_1364
Nimbostratus
Jul 08, 2016How to negate a | character in irule for a APM policy
I am trying to set a list of APM ACL's based on the Groups that are in the SAML insertion. The groups are delimitated with a | character. My code works if get rid of the |.
% set session.saml./C...
Ken_Thomas_1364
Nimbostratus
Jul 08, 2016Yes, I am using tclsh to test the statement first. tclshprompt%
I just got the result I wished with this statement. I can confirm it would work in a APM irule that would be great.
set session.assigned.acls [ regsub -all \|SG:\ ICHS-nonProduction-VPN- ${session.saml./Common/ichs3-vpn_act_saml_auth_ag.attr.name.UserGroup} /Common/ ]
result: % puts ${session.assigned.acls} /Common/DQ /Common/GCS
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects