18 Apr
2023
18 Apr
'23
4:41 a.m.
HI all , How i can get subsctring from attribute ? For example &Any-attr = "test:pass" but in DB I only want put "pass" part Attribut always in default:XXX
18 Apr
18 Apr
4:45 a.m.
On 18/04/2023 09:41, Anatoliy wrote:
HI all , How i can get subsctring from attribute ? For example &Any-attr = "test:pass" but in DB I only want put "pass" part
Attribut always in default:XXX
Use unlang and a regex. E.g. if (&Tmp-String-1 && (&Tmp-String-1 =~ /^[^:]*:(.*)$/)) { update request { &Tmp-String-2 := "%{1}" } } There are plenty of examples in the default config, such as in raddb/policy.d/canonicalization -- Matthew
1177
Age (days ago)
1177
Last active (days ago)
1 comments
2 participants
participants (2)
-
Anatoliy -
Matthew Newton