Update 3.0.4 to 3.0.x syntax surprises / bugs?
Alan DeKok
aland at deployingradius.com
Mon Nov 17 15:30:31 CET 2014
Stefan Winter wrote:
> 1)
> one of my client definitions has an opening parenthesis in its secret
> (no closing), which is not a problem for 3.0.4, but in current 3.0.x
> I get:
>
> /usr/local/freeradius/config/raddb/clients.conf[655]: Parse error after "sdfsre": unexpected token "("
> Errors reading or parsing /usr/local/freeradius/config/raddb/radiusd.conf
>
> sdfsre are the characters of the secret preceding the ( .
>
> Should such a secret now be surrounded by quotes, or is that more like
> a bug?
I've pushed a fix.
> 2)
> When running, I see that SQL queries are getting executed correctly
> (I see the retrieved AVPs), but the section still bails out with
> Query Error (and the exact same config works fine in 3.0.4).
> Here's a sample:
>
> rlm_sql (sql-commonauth): Reserved connection (4)
> (35) sql-commonauth: EXPAND (SELECT id, username, attribute, value, op FROM %{control:RESTENA-SQL-Table} WHERE username='%{SQL-User-Name}')
> (35) sql-commonauth: --> (SELECT id, username, attribute, value, op FROM check_imap_ssha1 WHERE username='xxxcensoredxxx')
> rlm_sql (sql-commonauth): Executing query: '(SELECT id, username, attribute, value, op FROM check_imap_ssha1 WHERE username='xxxcensoredxxx')'
> (35) sql-commonauth: User found in radcheck table
> (35) sql-commonauth: Conditional check items matched, merging assignment check items
> (35) sql-commonauth: RESTENA-SSHA1-Password := 'XXXV4iX9qSO8BcMxDJ6P0FNINVALIDQ1MGo1ZmNuZXJoVzWXXX=='
> (35) sql-commonauth: ERROR: SQL query error
> rlm_sql (sql-commonauth): Released connection (4)
Hmm... it would be nice to know what that query error is.
I've pushed some better error messages. Arran will also look into it.
Alan DeKok.
More information about the Freeradius-Users
mailing list