v3.0.x: raddebug/radmin ignore conditions
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Wed Feb 12 19:34:59 CET 2014
On 12 Feb 2014, at 17:36, JB <list.freeradius at 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 at freeradius.org>
FreeRADIUS Development Team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140212/98225012/attachment.pgp>
More information about the Freeradius-Users
mailing list