<DIV>Hi,<BR> I have installed <BR> ser-0.8.11, <BR> FreeRADIUS-0.9.0, <BR> radiusclient-0.3.2.</DIV>
<DIV>I can register two useragents(Kphone) to ser with default authorization ( www_authorize())via mysql database.<BR>But when I use radius_www_authorize(),the useragent(Kphone)dostnot get authorized.</DIV>
<DIV>What I have to do further to get radius authentication.<BR>Please help me<BR>Thanks in advance</DIV>
<DIV>Regards<BR>Xten_india.</DIV>
<DIV> I get the following message in radius.log file.<BR>------------------------------------------------ <BR><FONT color=#ff0000>Sat Sep 13 13:29:48 2003 : Info: Listening on IP address 192.168.100.101, ports 1812/udp and 1813/udp, with proxy on 1814/udp.<BR>Sat Sep 13 13:29:48 2003 : Info: Ready to process requests.<BR>Sat Sep 13 13:30:04 2003 : Error: rlm_eap: EAP-Message not found<BR>Sat Sep 13 13:30:04 2003 : Auth: Login OK: [root/support] (from client ser port 1645)<BR></FONT>--------------------------------------------------</DIV>
<DIV>My configuration file is</DIV>
<DIV> </DIV>
<DIV># Uncomment this if you want to use SQL database<BR><FONT color=#0080ff>loadmodule "/usr/local/lib/ser/modules/mysql.so"</FONT></DIV>
<DIV><FONT color=#0080ff>loadmodule "/usr/local/lib/ser/modules/sl.so"<BR>loadmodule "/usr/local/lib/ser/modules/tm.so"<BR>loadmodule "/usr/local/lib/ser/modules/rr.so"<BR>loadmodule "/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule "/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule "/usr/local/lib/ser/modules/registrar.so"<BR>loadmodule "/usr/local/lib/ser/modules/acc.so" <BR>loadmodule "/usr/local/lib/ser/modules/exec.so"<BR>loadmodule "/usr/local/lib/ser/modules/textops.so"</FONT></DIV>
<DIV><FONT color=#0080ff># Uncomment this if you want digest authentication<BR># mysql.so must be loaded !<BR>loadmodule "/usr/local/lib/ser/modules/auth.so"<BR>loadmodule "/usr/local/lib/ser/modules/auth_db.so"</FONT></DIV>
<DIV><FONT color=#0080ff># ----------------- setting module-specific parameters ---------------</FONT></DIV>
<DIV><FONT color=#0080ff># -- usrloc params --</FONT></DIV>
<DIV><FONT color=#0080ff>#modparam("usrloc", "db_mode", 0)</FONT></DIV>
<DIV><FONT color=#0080ff># Uncomment this if you want to use SQL database <BR># for persistent storage and comment the previous line<BR>modparam("usrloc", "db_mode", 1)</FONT></DIV>
<DIV><FONT color=#0080ff># -- auth params --<BR># Uncomment if you are using auth module<BR>#<BR>loadmodule "/usr/local/lib/ser/modules/auth_radius.so"<BR>modparam("auth_radius", "radius_config",<BR>"/usr/local/etc/radiusclient/radiusclient.conf")</FONT></DIV>
<DIV><FONT color=#0080ff>modparam("auth_db", "db_url","sql://root:support@localhost/radius")<BR>modparam("auth_db", "calculate_ha1", yes)<BR>#<BR># If you set "calculate_ha1" parameter to yes (which true in this config), <BR># uncomment also the following parameter)<BR>#<BR>modparam("auth_db", "password_column", "password")</FONT></DIV>
<DIV><FONT color=#0080ff># -- rr params --<BR># add value to ;lr param to make some broken UAs happy<BR>modparam("rr", "enable_full_lr", 1)</FONT></DIV>
<DIV><BR><FONT color=#0080ff>modparam("acc", "log_level", 1)<BR>#modparam("acc", "radius_flag", 1)<BR>modparam("acc", "log_flag", 1)<BR>modparam("auth_radius", "service_type", 15)</FONT></DIV>
<DIV><FONT color=#0080ff># ------------------------- request routing logic -------------------</FONT></DIV>
<DIV><FONT color=#0080ff># main routing logic</FONT></DIV>
<DIV><FONT color=#0080ff>route{</FONT></DIV>
<DIV><FONT color=#0080ff> # initial sanity checks -- messages with<BR> # max_forwards==0, or excessively long requests<BR> if (!mf_process_maxfwd_header("10")) {<BR> sl_send_reply("483","Too Many Hops");<BR> break;<BR> };<BR> if (len_gt( max_len )) {<BR> sl_send_reply("513", "Message too big");<BR> break;<BR> };</FONT></DIV>
<DIV><FONT color=#0080ff> # we record-route all messages -- to make sure that<BR> # subsequent messages will go through our proxy; that's<BR> # particularly good if upstream and downstream entities<BR> # use different transport protocol<BR> record_route(); <BR> # loose-route processing<BR> if (loose_route()) {<BR> t_relay();<BR> break;<BR> };</FONT></DIV>
<DIV><FONT color=#0080ff> # if the request is for other domain use UsrLoc<BR> # (in case, it does not work, use the following command<BR> # with proper names and addresses in it)<BR># if (uri==myself) {</FONT></DIV>
<DIV><FONT color=#0080ff> if (method=="REGISTER") {</FONT></DIV>
<DIV><FONT color=#0080ff># Uncomment this if you want to use digest authentication<BR> if (!radius_www_authorize("localdomain.com")) {<BR> www_challenge("localdomain.com", "0");<BR> break;<BR> };</FONT></DIV>
<DIV><FONT color=#0080ff> save("location");<BR> break;<BR> };</FONT></DIV>
<DIV><FONT color=#0080ff> # native SIP destinations are handled using our USRLOC DB<BR> if (!lookup("location")) {<BR> sl_send_reply("404", "Not Found");<BR> break;<BR> };<BR># };<BR> # forward to current uri now; use stateful forwarding; that<BR> # works reliably even if we forward from TCP to UDP<BR> if (!t_relay()) {<BR> sl_reply_error();<BR> };</FONT></DIV>
<DIV><FONT color=#0080ff>}</FONT></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software