Hi,

> how do i copy User-Name to something else?

there are guides out there..and various snippets from mail archives
but you can start by doing stuff like

attr_rewrite copy.user-name {
attribute = Stripped-User-Name
new_attribute = yes
searchfor = ""
searchin = packet
replacewith = "%{User-Name}"
}

attr_rewrite remove-domain {
attribute = Stripped-User-Name
searchfor = "\.test\.domain\.com"
searchin = packet
new_attribute = no
replacewith = ""
}

attr_rewrite add-dollar-sign {
attribute = Stripped-User-Name
searchfor = "^(host/.*)"
searchin = packet
new_attribute = no
replacewith = "%{1}$"
}

then you can add

copy.user-name
remove-domain
add-dollar-sign

to the authorize section


alan
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to