Hi, > if("%{User-Name}" =~ /\\\\?([...@\\\\]+)@?([-[:alnum:]._]*)?$/) { > > update request { > > Realm := "%{2}" > > } > The staff login id is: > > ps...@worc.ac.uk > > Whereas the student login is in the format: > > psdn1...@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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html