debug log [was Re: freeradius ippool issue]

Josip Rodin joy at entuzijast.net
Fri Jul 18 15:43:53 CEST 2008


On Fri, Jul 18, 2008 at 03:25:50PM +0200, Alan DeKok wrote:
> > It would be good if this was documented somewhere - I actually looked in
> > the unlang manual page for a way to get a date string, but found nothing.
> 
>   doc/variables.txt
> 
> > However, the VARIABLES section doesn't mention that those date-format
> > strings are actually treated as variables whose names are single letters.
> > It does mention the results of regular expression matches, where there
> > are eight variables whose names are single numbers, so this looks like
> > an omission.
> 
>   There are a bunch more single-character expansions that get done.
> 
> > I'd write a proper patch, but I haven't looked at the source yet, to see
> > which exact set of date formats are supported...?
> 
>   See doc/variables.txt
> 
>   Adding more "man" pages would be a good idea.  But the "unlang" page
> is already pretty big.

OK, yes, but this particular situation is a bit strange... the variables.txt
file says:

    See "man unlang" for more complete documentation on the run-time
  variables.  This file is here only for historical purposes.

Also:

    The following one-character variables are also defined.  However, they
  are duplicates of the previous general cases, and are only provided
  for backwards compatibility.  They WILL BE removed in a future release.

Which information is authoritative - should we use and depend on this,
or not?

If not, what would be the best general way to get things like %D?

-- 
     2. That which causes joy or happiness.



More information about the Freeradius-Users mailing list