15 Aug
2009
15 Aug
'09
7:24 p.m.
Hi, If a connection that comes in with a GROUP NAME from SQL of "USUK-XX" or "WUK-XX" and I want to strip of the "-XX", how would I do this with ulang so I only validate the following? if(SQL-GROUP == "USUK") { ok } elsif(NAS-IP-Address == AAA.BBB.CCC.DDD && SQL-GROUP == "WUK") { ok } else { reject } Thx in advance Nev
16 Aug
16 Aug
5:58 a.m.
If a connection that comes in with a GROUP NAME from SQL of "USUK-XX" or "WUK-XX" and I want to strip of the "-XX", how would I do this with ulang so I only validate the following?
Using the regexp feature, you can match part of an attribute then reference it later, like so: if (SQL-GROUP =~ /(.*)-XX/) { update request { SQL-GROUP := "%{1}" } } --Mike
6170
Age (days ago)
6171
Last active (days ago)
1 comments
2 participants
participants (2)
-
Michael Bryant -
Neville