XLAT Parsing error.
    Alan DeKok 
    aland at deployingradius.com
       
    Tue Jun 26 08:10:04 CEST 2007
    
    
  
Arran Cudbard-Bell wrote:
> alternate values arnt being parsed correctly in xlat strings involving 
> modules.
  It doesn't work.  It's not intended to work, because ":-" is a
perfectly valid string to pass to a module.  ":-" only works for attributes.
> What would be really cool is if one query returned a null string a 
> second query could be executed as an alternate, but i'm not sure how 
> hard that would be to do.
  That's probably not hard.
  %{%{sql:foo}:-%{sql:bar}}
 It's easier to parse.  It looks slightly more complicated to look at,
but not too bad.
  Alan DeKok.
    
    
More information about the Freeradius-Users
mailing list