Parse error for entry DEFAULT entry in users file when Auth-Type := SQL
Gunther
freeradius at caribsms.com
Mon Dec 4 04:32:54 CET 2006
I was trying to upgrade from version 1.1.0 to 1.1.3 but when starting
FreeRadius I received the
following error:
"Error: /usr/local/etc/raddb/users[216]: Parse error (check) for entry
DEFAULT: Unknown value SQL for attribute Auth-Type"
I use FR with MySQL and the ./raddb/users file contains the default
attributes.
E.g.
DEFAULT Simultaneous-Use := 1, Auth-Type := sql
Idle-Timeout = 3600,
Acct-Interim-Interval = 180
This worked fine until FR 1.1.1 and stopped working with 1.1.2.
I found that one change in the ./src/lib/valuepair.c file caused this
problem:
At the end of the pairread function: (1265-1271)
/*
* If we didn't make a pair, return an error.
*/
if (!vp) {
*eol = T_INVALID;
return NULL;
}
It seems that the pairmake function does not return a valid pair when the
pair is 'Auth-Type := SQL'.
I am not sure if I use the users file in connection with my MySQL setup
correctly, or
if my users file entry is simply not correct?
Is 'Auth-Type := SQL' in the users file still allowed? It doesn't work
anymore since 1.1.2.
In a posting from Oct 2001 I saw the following:
> If you want to do SQL authentication, you should use 'Auth-Type := SQL'
>in the 'users' file.
>
> If you want to authenticate agains /etc/passwd, THEN you use
>'Auth-Type := System'.
>
> Alan DeKok.
More information about the Freeradius-Users
mailing list