<DIV>Hi,<BR>&nbsp;&nbsp; I have&nbsp; installed <BR>&nbsp;&nbsp; ser-0.8.11, <BR>&nbsp;&nbsp; FreeRADIUS-0.9.0, <BR>&nbsp;&nbsp; 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>&nbsp;I get the following message in radius.log file.<BR>------------------------------------------------&nbsp; <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>&nbsp;</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"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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",&nbsp;&nbsp; 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># -------------------------&nbsp; 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>&nbsp;# initial sanity checks -- messages with<BR>&nbsp;# max_forwards==0, or excessively long requests<BR>&nbsp;if (!mf_process_maxfwd_header("10")) {<BR>&nbsp;&nbsp;sl_send_reply("483","Too Many Hops");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};<BR>&nbsp;if (len_gt( max_len )) {<BR>&nbsp;&nbsp;sl_send_reply("513", "Message too big");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV><FONT color=#0080ff>&nbsp;# we record-route all messages -- to make sure that<BR>&nbsp;# subsequent messages will go through our proxy; that's<BR>&nbsp;# particularly good if upstream and downstream entities<BR>&nbsp;# use different transport protocol<BR>&nbsp;record_route();&nbsp;<BR>&nbsp;# loose-route processing<BR>&nbsp;if (loose_route()) {<BR>&nbsp;&nbsp;t_relay();<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV><FONT color=#0080ff>&nbsp;# if the request is for other domain use UsrLoc<BR>&nbsp;# (in case, it does not work, use the following command<BR>&nbsp;# with proper names and addresses in it)<BR>#&nbsp;if (uri==myself) {</FONT></DIV>
<DIV><FONT color=#0080ff>&nbsp;&nbsp;if (method=="REGISTER") {</FONT></DIV>
<DIV><FONT color=#0080ff># Uncomment this if you want to use digest authentication<BR>&nbsp;&nbsp;&nbsp;if (!radius_www_authorize("localdomain.com")) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;www_challenge("localdomain.com", "0");<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;};</FONT></DIV>
<DIV><FONT color=#0080ff>&nbsp;&nbsp;&nbsp;save("location");<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};</FONT></DIV>
<DIV><FONT color=#0080ff>&nbsp;&nbsp;# native SIP destinations are handled using our USRLOC DB<BR>&nbsp;&nbsp;if (!lookup("location")) {<BR>&nbsp;&nbsp;&nbsp;sl_send_reply("404", "Not Found");<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};<BR>#&nbsp;};<BR>&nbsp;# forward to current uri now; use stateful forwarding; that<BR>&nbsp;# works reliably even if we forward from TCP to UDP<BR>&nbsp;if (!t_relay()) {<BR>&nbsp;&nbsp;sl_reply_error();<BR>&nbsp;};</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