Hi, Is it possible to get current debug level in unlang ? Is it possible (in rlm_perl) ? config { debug_level = [get current debug level] } Thx.
On 22 Apr 2015, at 10:59, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Hi,
Is it possible to get current debug level in unlang ?
%{debug:} Will expand to the current request debug level.
Is it possible (in rlm_perl) ?
config { debug_level = [get current debug level] }
No, and the debug level can change during the lifetime of the process. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
Hi, "%{debug:} is expanded to empty string in case of radiusd -X & radius -xxx (version 3.0.8). Is it correct ? i expect some value. unlang piece of code: if ("%{debug:}" == '' { noop } Debug output from authorize section (run with -xxx option): Thu Apr 23 10:27:24 2015 : Debug: (0) if ("%{debug:}" == '') { Thu Apr 23 10:27:24 2015 : Debug: (0) EXPAND %{debug:} Thu Apr 23 10:27:24 2015 : Debug: (0) --> Thu Apr 23 10:27:24 2015 : Debug: (0) if ("%{debug:}" == '') -> TRUE Thu Apr 23 10:27:24 2015 : Debug: (0) if ("%{debug:}" == '') { Thu Apr 23 10:27:24 2015 : Debug: (0) modsingle[authorize]: calling noop (rlm_always) for request 0 Thu Apr 23 10:27:24 2015 : Debug: (0) modsingle[authorize]: returned from noop (rlm_always) for request 0 Thu Apr 23 10:27:24 2015 : Debug: (0) [noop] = noop Thu Apr 23 10:27:24 2015 : Debug: (0) } # if ("%{debug:}" == '') = noop Debug output from authorize section (run with -X option): (0) if ("%{debug:}" == '') { (0) EXPAND %{debug:} (0) --> (0) if ("%{debug:}" == '') -> TRUE (0) if ("%{debug:}" == '') { (0) [noop] = noop (0) } # if ("%{debug:}" == '') = noop Thx. On Wed, Apr 22, 2015 at 12:37 PM, Arran Cudbard-Bell < a.cudbardb@freeradius.org> wrote:
On 22 Apr 2015, at 10:59, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Hi,
Is it possible to get current debug level in unlang ?
%{debug:}
Will expand to the current request debug level.
Is it possible (in rlm_perl) ?
config { debug_level = [get current debug level] }
No, and the debug level can change during the lifetime of the process.
-Arran
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 23 Apr 2015, at 09:35, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Hi,
"%{debug:} is expanded to empty string in case of radiusd -X & radius -xxx (version 3.0.8). Is it correct ? i expect some value.
Looks like there's an issue with the xlat code that skips executing the function, if the input is zero length. Not sure if this was intentional or not, i'll look at it more later... Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (2)
-
Arran Cudbard-Bell -
Peter Balsianok