3 Jun
2009
3 Jun
'09
7:53 a.m.
Hi,
if("%{User-Name}" =~ /\\\\?([^@\\\\]+)@?([-[:alnum:]._]*)?$/) {
update request {
Realm := "%{2}"
} The staff login id is:
Psna1@worc.ac.uk
Whereas the student login is in the format:
Psdn1_03@worc.ac.uk
Would it be possible to filter on the format of the userid? The student id has `_02 on it.
yes, easily... eg if("%{User-Name}" =~ /_02@/) { update request { Realm := "student" } } it can be made scalable and more pretty but this would suffice for this question alan