I'm looking for a way to compare two dynamic values in a role map. I'd like to compare the first four characters of Host:Name with the first four characters of RADIUS:IETF:Called-Station-Id.
Something like "Host:Name begins_with left(%{RADIUS:IETF:Called-Station-ID},4)" would be perfect if an Excel like left() fuction was a thing.
Is something like this possible in a role map or do I need to configure/build something else first to make the role map comparison easier?