Print variables to debug output

Anirudh Malhotra 8zero2ops at
Fri Oct 21 17:46:51 CEST 2016

Yes you can just do an

If('%{User-Name}') {

It will expand it and will be shown in debug logs

On Friday 21 October 2016, Daniel Wruck <daniel.wruck at> wrote:

> I am new to FreeRADIUS and am setting up my environment. I am running
> Ubuntu 16.04 LTS and FreeRADIUS Version 2.2.8. My question is not really
> version dependent and might be answered with just 'NO'.
> Is there any way in FreeRADIUS or unlang to print a string or the value of
> a variable when running FreeRADIUS -X?  Is there a print %{User-Name} or
> stdout 'Custom mschap module just completed' that would just throw add it
> inline to the output? It would help me to know the value of a param
> mid-code or to trace the order of when a certain line of code was run. I
> have searched unsuccessfully to find anyone say that it could or could not
> be done.
> Dan W
> -
> List info/subscribe/unsubscribe? See
> list/users.html

Anirudh Malhotra
Mail: at
Twitter: @8zero2_in

More information about the Freeradius-Users mailing list