XLAT Parsing error.

Arran Cudbard-Bell A.Cudbard-Bell at sussex.ac.uk
Mon Jun 25 18:18:12 CEST 2007


Hi,

Another small xlat parsing error,
alternate values arnt being parsed correctly in xlat strings involving 
modules.

update request {
             Supplicant-Flags = "%{sql_clients:SELECT 
EXPORT_SET(master.supplicant_flags,'1','0','',10) FROM `master` WHERE 
master.hw_address = '%{Calling-Station-Id:-null}' LIMIT 0,1:-null}"
}

expands to

SELECT EXPORT_SET(master.supplicant_flags,'1','0','',10) FROM `master` 
WHERE master.hw_address = '%{Calling-Station-Id:-null}' LIMIT 0,1:-null

when should expand to

SELECT EXPORT_SET(master.supplicant_flags,'1','0','',10) FROM `master` 
WHERE master.hw_address = '%{Calling-Station-Id:-null}' LIMIT 0,1

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.

-- 
Arran Cudbard-Bell (A.Cudbard-Bell at sussex.ac.uk)
Authentication, Authorisation and Accounting Officer
Infrastructure Services | ENG1 E1-1-08
University Of Sussex, Brighton
EXT:01273 873900 | INT: 3900



More information about the Freeradius-Users mailing list