3.0.11: unjustified warning on startup

Alan DeKok aland at deployingradius.com
Wed Feb 10 15:18:09 CET 2016


On Feb 10, 2016, at 4:21 AM, Stefan Winter <stefan.winter at restena.lu> wrote:
> this here is shown on startup:
> 
> "raddb/clients/staff[232]: The item 'staff_type' is defined, but is
> unused by the configuration"

  That should probably be moved to just a debug message.

> But it's not correct... yes, I set a custom attribute staff_type inside
> a client {} there, but I *do* use it in configuration, in statements
> like this:
> 
> update request {
>      &RESTENA-Service-Type = "Staff-%{client:staff_type}"
> }

  Hmm... I see.  The difficulty is that there's no "parse" callback for the dynamic expansions.  as in "Here's some text, is it correct?"

  That would be needed in order to fix this issue. 

> Could the warnings be made more clever? It is sure useful to be warned
> about unused things for cleanup of configs, but only if the things are
> *really* unused.

  Telling what's really unused isn't trivial. :(

  Alan DeKok.




More information about the Freeradius-Users mailing list