Hi everybody,
I'm playing with SER andd I would like to add tha auth_radius module..
versions:
ser: 0.8.14
radiusclient: 0.4.8
The compilation went well, but when I start SER, it says:
0(31749) DEBUG: init_mod: auth_radius
0(31749) auth_radius - Initializing
0(31749) auth_radius: No `Cisco' vendor in Radius dictionary
0(31749) find_export: found <pre_auth> in module auth
[/usr/local/lib/ser/modules/auth.so]
0(31749) find_export: found <post_auth> in module auth
[/usr/local/lib/ser/modules/auth.so]
0(31749) ERROR: auth_radius: can't get code for the User-Name attribute
0(31749) init_mod(): Error while initializing module auth_radius
ERROR: error while initializing modules
the relevant part of my ser.cfg:
----------------------------------------- CUT
--------------------------------------------
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/exec.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
# 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_radius.so"
# ----------------- setting module-specific parameters ---------------
# -- 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)
modparam("usrloc", "db_url", "sql://xxx:yyy@localhost/ser")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
----------------------------------------- CUT
--------------------------------------------
radclient.conf:
auth_order radius,local
login_tries 4
login_timeout 60
nologin /etc/nologin
issue /usr/local/etc/radiusclient/issue
authserver localhost
acctserver localhost
servers /usr/local/etc/radiusclient/servers
dictionary /usr/local/etc/radiusclient/dictionary
dictionary /usr/local/etc/radiusclient/dictionary.sip
dictionary /usr/local/etc/radiusclient/dictionary.ascend
dictionary /usr/local/etc/radiusclient/dictionary.compat
dictionary /usr/local/etc/radiusclient/dictionary.merit
login_radius /usr/local/sbin/login.radius
seqfile /var/run/radius.seq
mapfile /usr/local/etc/radiusclient/port-id-map
default_realm
radius_timeout 10
radius_retries 3
bindaddr localhost
login_local /bin/login
As you can see, I have added all of the dictionary files, but still does
not work :(
what can be the problem????
Thanks, Regards
Misi