[Serusers] auth_radius won't loaded
Ericson Ferdinand Pasaribu
ericsonfp at gmail.com
Sat May 13 17:25:45 CEST 2006
Hello, I'm trying to buld a system of SER with radius support. I use
Redhat 9 and radiusclient-ng-0.5.2. In my system, I installed SER
0.9.5 and freeRADIUS 1.1.1.
I was able installing all of them succesfully. After I configure SER
to have the radius support, I get this error message when I try to
start SER:
0(5071) ERROR: load_module: could not open module
</usr/local/lib/ser/modules/auth_radius.so>: libradiusclient-ng.so.2:
cannot open shared object file: No such file or directory
0(5071) parse error (32,13-14): failed to load module
0(5071) parse error (89,32-33): unknown command, missing loadmodule?
I have checked the SER modules in my system, and there is
auth_radius.so in /usr/local/lib/ser/modules. I also checked the
libradiusclient library, and there is libradiusclient-ng.so.2 in
/usr/local/lib.
I don't know what's wrong with my system. Below is my ser.cfg file. Is
there anybody that can give some help?
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
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/textops.so"
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)
modparam("usrloc", "db_mode", 2)
# -- auth params --
#
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient-ng/radiusclient.conf")
#
#modparam("auth_db", "calculate_ha1", yes)
#
#modparam("auth_db", "password_column", "password")
#
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
break;
};
if (!method=="REGISTER") record_route();
if (loose_route()) {
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("bohr.ee.net", "subscriber")) {
www_challenge("bohr.ee.net", "0");
break;
};
save("location");
break;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
if (!t_relay()) {
sl_reply_error();
};
}
More information about the sr-users
mailing list