Forum Discussion
ChristianH_1903
Nimbostratus
Nov 18, 2015Generating SAML attributes and calculations in variable assignments
Hi,
I'm currently setting up my f5 to act as SAML IdP. One of the attributes I need to send back is supposed to contain an opaque, privacy-preserving unique ID. I was thinking of using e.g. sha2...
Michael_Jenkins
Cirrostratus
Nov 18, 2015I just tried to test that out in my environment, and it looks like the command
sha256 is not available within the VPE (seems that some of the custom commands are only available through the iRules). I think because of that, if you wanted a SHA256 hash, you'd need to use an iRule event and do it in an iRule.
Another option might be to use a hex-encoding of an attribute, which you can do in the VPE itself. You could use a variable assign with the value:
binary scan [mcget session.ad.last.attr.sAMAccountName] H* encstr
return $encstr
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