Currently using mysql with freeradius.
Accounting is done to both mysql and the detail files in my case.
We also allow users with [EMAIL PROTECTED] (strips @whatever.com
off).
The logs to sql are correct. All accounting to sql show just the
username stripped in the username field.
In the detail files the User-Name shows up as the entire non stripped
user name. I need the User-Name field to show up as the
Stripped-User-Name instead.
How can this be done?
I have have tried using the attr_rewrite but fail to understand its use
and cannot get it to do what I want.
Something like ...
attr_rewrite usernamedoit {
attribute = User-Name
searchin = packet
searchfor = "$"
replacewith = "%{Stripped-User-Name}"
ignore_case = yes
new_attribute = no
max_matches = 1
append = no
}
accounting {
usernamedoit
sql
detail
radutmp
}
Sam
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html