unlang question

Enrik Berkhan enrik#freeradius at planb.de
Fri Jul 6 09:21:44 CEST 2007


Enrik Berkhan wrote:
> Alan DeKok wrote:
>>   Please check current CVS.  In cases where it doesn't work, it should
>> now print an error.  This means that configurations you *think* work,
>> but which don't really work, will now print an error.

I've re-compiled with dump_tree() enabled. From the tree dump it is
obvious that I can still change the "module actions" on an if-section:

> Fri Jul  6 09:14:05 2007 : Debug:               if {
> Fri Jul  6 09:14:05 2007 : Debug:                       update {
> Fri Jul  6 09:14:05 2007 : Debug:                               reject = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               fail = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               ok = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               handled = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               invalid = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               userlock = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               notfound = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               noop = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               updated = 0
> Fri Jul  6 09:14:05 2007 : Debug:                       }

The following one has been set in the config, it's not the default, no
error reported though:

> Fri Jul  6 09:14:05 2007 : Debug:                       reject = 2
> Fri Jul  6 09:14:05 2007 : Debug:                       fail = 1
> Fri Jul  6 09:14:05 2007 : Debug:                       ok = return
> Fri Jul  6 09:14:05 2007 : Debug:                       handled = return
> Fri Jul  6 09:14:05 2007 : Debug:                       invalid = 1
> Fri Jul  6 09:14:05 2007 : Debug:                       userlock = return
> Fri Jul  6 09:14:05 2007 : Debug:                       notfound = return
> Fri Jul  6 09:14:05 2007 : Debug:                       noop = 1
> Fri Jul  6 09:14:05 2007 : Debug:                       updated = 1
> Fri Jul  6 09:14:05 2007 : Debug:               }
> Fri Jul  6 09:14:05 2007 : Debug:               elsif {
> Fri Jul  6 09:14:05 2007 : Debug:                       update {
> Fri Jul  6 09:14:05 2007 : Debug:                               reject = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               fail = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               ok = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               handled = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               invalid = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               userlock = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               notfound = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               noop = 0
> Fri Jul  6 09:14:05 2007 : Debug:                               updated = 0
> Fri Jul  6 09:14:05 2007 : Debug:                       }
> Fri Jul  6 09:14:05 2007 : Debug:                       reject = return
> Fri Jul  6 09:14:05 2007 : Debug:                       fail = 1
> Fri Jul  6 09:14:05 2007 : Debug:                       ok = return
> Fri Jul  6 09:14:05 2007 : Debug:                       handled = return
> Fri Jul  6 09:14:05 2007 : Debug:                       invalid = 1
> Fri Jul  6 09:14:05 2007 : Debug:                       userlock = return
> Fri Jul  6 09:14:05 2007 : Debug:                       notfound = return
> Fri Jul  6 09:14:05 2007 : Debug:                       noop = 1
> Fri Jul  6 09:14:05 2007 : Debug:                       updated = 1
> Fri Jul  6 09:14:05 2007 : Debug:               }

What about enabling dump_tree() by default but only dump the tree at
debug level, say, 5?

Enrik



More information about the Freeradius-Devel mailing list