active directory host authentication
A.L.M.Buxey at lboro.ac.uk
A.L.M.Buxey at lboro.ac.uk
Wed Apr 18 22:44:51 CEST 2007
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
More information about the Freeradius-Users
mailing list