There was a bug in the dictionary parser of the new libradiusclient
library -- it does not like dictionaries having comments at the end of
ATTRIBUTE lines, try the attached dictionary.ser or use the latest
libradiusclient released by Maxim (it should have this bug fixed).
Jan.
On 15-04 18:31, Lambros Lambrinos wrote:
Hi,
Just for other people's reference, to get
ser to compile with radiusclient 0.4.x you need
to get the latest source from CVS.
Now as per the 'radius_howto' testing between
freeradius and the client worked fine.
However, after modifying ser.cfg, the following
comes up and i would appreciate any help.
0(0) ERROR: acc: error reading radius dictionary
0(0) init_mod(): Error while initializing module acc
ERROR: error while initializing modules
If i do not load module 'acc' then a similar error message
appears with 'auth_radius' not initialising.
I have appended dictionary.ser to dictionary and included
it from raddb. The permissions for dictionary are set to
rw/r/r and the relevant parts in ser.cfg are:
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
#modparam("auth_db", "password_column", "password")
modparam("acc", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf
")
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient/radiuscli
ent.conf")
modparam("auth_radius", "service_type", 15)
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
#modparam ("acc", "log_level", 1)
#modparam ("acc", "radius_flag", 1)
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers