<font size="4">Platform and Environment:</font><br> Freeradius:1.0.5 on Redhat 9<br> MySQL:MySQL-standard-5.0.20-linux-i686<br> <font size="4">Step:</font><br> 1. create database radius;<br> 2.<font><font>mysql -uroot -prootpass radius < db_mysql.sql ;
<br> 3.Edit radiusd.conf and sql.conf;<br> <font size="4">Debug Result: <br> <font size="2">Nothing to do. Sleeping until we see a request.<br>rad_recv: Access-Request packet from host <a href="http://202.117.7.223:1490">
202.117.7.223:1490</a>, id=6, length=47<br> User-Name = "barney"<br> CHAP-Password = 0xad35a90d409c25b78b6d148a531358d9ac<br> Processing the authorize section of radiusd.conf<br>modcall: entering group authorize for request 2
<br> modcall[authorize]: module "preprocess" returns ok for request 2<br> rlm_chap: Setting 'Auth-Type := CHAP'<br> modcall[authorize]: module "chap" returns ok for request 2<br> modcall[authorize]: module "mschap" returns noop for request 2
<br> rlm_realm: No '@' in User-Name = "barney", looking up realm NULL<br> rlm_realm: No such realm "NULL"<br> modcall[authorize]: module "suffix" returns noop for request 2<br>
radius_xlat: 'barney'<br>rlm_sql (sql): sql_set_user escaped user --> 'barney'<br><span style="font-weight: bold;">radius_xlat: 'SELECT id, UserName, Attribute, Value, op FROM radcheck WHERE Username = 'barney' ORDER BY id'
</span><br style="font-weight: bold;"><span style="font-weight: bold;">rlm_sql (sql): Ignoring unconnected handle 4..</span><br style="font-weight: bold;"><span style="font-weight: bold;">rlm_sql (sql): Ignoring unconnected handle 3..
</span><br style="font-weight: bold;"><span style="font-weight: bold;">rlm_sql (sql): Ignoring unconnected handle 2..</span><br style="font-weight: bold;"><span style="font-weight: bold;">rlm_sql (sql): Ignoring unconnected handle 1..
</span><br style="font-weight: bold;"><span style="font-weight: bold;">rlm_sql (sql): Ignoring unconnected handle 0..</span><br style="font-weight: bold;"><span style="font-weight: bold;">rlm_sql (sql): There are no DB handles to use! skipped 5, tried to connect 0
</span><br style="font-weight: bold;"><span style="font-weight: bold;"> modcall[authorize]: module "sql" returns fail for request 2</span><br>modcall: group authorize returns fail for request 2<br>Finished request 2
<br>Going to the next request<br>--- Walking the entire request list ---<br>Waking up in 6 seconds...<br>rad_recv: Access-Request packet from host <a href="http://202.117.7.223:1490">202.117.7.223:1490</a>, id=6, length=47
<br>Discarding duplicate request from client liv1:1490 - ID: 6<br>--- Walking the entire request list ---<br>Waking up in 2 seconds...<br>--- Walking the entire request list ---<br>Cleaning up request 2 ID 6 with timestamp 45bca7cb
<br>Nothing to do. Sleeping until we see a request.<br> <br> From the above results, I guess mysql doesnt work. But I can access databases from the command line .The Freeradius Server worked well when I use the "user", not using MySQL.
<br> Any suggestion?<br></font></font></font></font> <br>