On 12 Feb 2014, at 17:36, JB <list.freeradius@me.com> wrote:
Arran Cudbard-Bell wrote:
Packet-Src-Ip-Address is probably a bad one to use as it's not a real attribute.
How else would I filter the debug output per IP using raddebug/radmin?
NAS-IP-Address, which is a real attribute, or you do it from within a virtual server. if ("%{Packet-Src-IP-Address}" == <foo>) { update { request:Tmp-Integer-0 := "%{debug:<level>}" } }
You can use the %{debug:<level>} xlat from within the request, it will probably work more reliably than the radmin interface.
It marks up the current request for debugging at the point the xlat function is called. Unfortunately the output file can still only be set globally.
So, I just would have to add something like "if (%{User-Name} == …) update control {…}" to the beginning of the sections I am interested in?
Yes, or base it on user account flags in an SQL DB or LDAP Directory. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2