linelog module soft failure

Alan DeKok aland at deployingradius.com
Fri Sep 10 16:36:42 CEST 2021


On Sep 10, 2021, at 9:17 AM, Arnaud LAURIOU <arnaud.lauriou at renater.fr> wrote:
> Not working for me, return status by f_ticks (linelog module) is still 'fail' :

  Where did you add it?

> (6117) Fri Sep 10 14:26:47 2021: Debug:     if ("%{client:group}" == "eduroam_fr_sp") {
> (6117) Fri Sep 10 14:26:47 2021: Debug:     EXPAND %{client:group}
> (6117) Fri Sep 10 14:26:47 2021: Debug:        --> eduroam_fr_sp
> (6117) Fri Sep 10 14:26:47 2021: Debug:     if ("%{client:group}" == "eduroam_fr_sp")  -> TRUE
> (6117) Fri Sep 10 14:26:47 2021: Debug:     if ("%{client:group}" == "eduroam_fr_sp")  {
> (6117) Fri Sep 10 14:26:47 2021: Debug: f_ticks: EXPAND f_ticks.%{%{reply:Packet-Type}:-format}
> (6117) Fri Sep 10 14:26:47 2021: Debug: f_ticks:    --> f_ticks.Access-Accept
> (6117) Fri Sep 10 14:26:47 2021: Debug: f_ticks: EXPAND F-TICKS/eduroam/1.0#REALM=%{Realm}#VISCOUNTRY=FR#VISINST=%{Operator-Name}#CSI=%{Calling-Station-Id}#RESULT=OK#
> (6117) Fri Sep 10 14:26:47 2021: Debug: f_ticks:    --> F-TICKS/eduroam/1.0#REALM=etu.univ-amu.fr#VISCOUNTRY=FR#VISINST=#CSI=56-CA-25-B1-00-5B#RESULT=OK#
> (6117) Fri Sep 10 14:26:47 2021: Debug: f_ticks: EXPAND /var/log/radius/f_ticks
> (6117) Fri Sep 10 14:26:47 2021: Debug: f_ticks:    --> /var/log/radius/f_ticks
> (6117) Fri Sep 10 14:26:47 2021: Debug:       [f_ticks] = fail
> (6117) Fri Sep 10 14:26:47 2021: Debug:     } # if ("%{client:group}" == "eduroam_fr_sp")  = fail
> (6117) Fri Sep 10 14:26:47 2021: Debug:   } # post-auth = fail
> 
> The line 'fail = 1' is not displayed in debug mode:
>   # Loading module "f_ticks" from file /etc/freeradius/mods-enabled/f-ticks
>   linelog f_ticks {

  Uh, no.  It won't print out there, because you're not supposed to use it there.

  Add it when the module is *used*.  i.e. in the post-auth section.

post-auth {
	...
	linelog {
		fail = 1
	}
	ok
	...
}


More information about the Freeradius-Users mailing list