Print variables to debug output
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
Yes you can just do an If('%{User-Name}') { noop } It will expand it and will be shown in debug logs On Friday 21 October 2016, Daniel Wruck <daniel.wruck@fbchammond.com> 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 http://www.freeradius.org/ list/users.html
-- BR, Anirudh Malhotra Mail: 8zero2.in@gmail.com Facebook: www.facebook.com/8zero2 Twitter: @8zero2_in Blog: blog.8zero2.in
On Fri, Oct 21, 2016 at 03:41:27PM +0000, Daniel Wruck 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.
If you are setting up a new environment you should be using version 3. Version 2 is end-of-life and no longer supported. see http://wiki.freeradius.org/building/Debian%20and%20Ubuntu
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.
In v3, just add one of debug_request, debug_reply, debug_control or debug_all to the virtual server in sites-enabled. See raddb/policy.d/debug for all of them. Matthew -- Matthew Newton, Ph.D. <mcn4@leicester.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
On 24/10/2016 14:09, Matthew Newton wrote:
On Fri, Oct 21, 2016 at 03:41:27PM +0000, Daniel Wruck 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. If you are setting up a new environment you should be using version 3. Version 2 is end-of-life and no longer supported.
I understand why you're using 2.2.8 - it's what's in the standard package repositories. However you don't need to build a newer version yourself; there is a freeradius PPA with the latest(*) 3.0.x version ready to use. https://launchpad.net/~freeradius/+archive/ubuntu/stable-3.0 (*) Well almost. 3.0.12 has just been released, but the PPA has 3.0.11. I would use that, and just upgrade to 3.0.12 when it's available.
participants (4)
-
Anirudh Malhotra -
Brian Candler -
Daniel Wruck -
Matthew Newton