Hello everybody I have configured the freeRADIUS 0.9.3 server on RedHat .
It works fine for authorization, but not for accounting. When radiusd gets a "Stop" packet, it first UPDATEs the (if any) radacct row , and then INSERTs a new one. I inspected rlm_sql.c , put a trace , recompiled and finally found that code on line #853 was probably the cause of my problem: #853 numaffected = (inst->module->sql_affected_rows)(sqlsocket, inst->config); #854 if (numaffected < 1) { #855 /* #856 * If our update above didn't match anything #857 * we assume it's because we haven't seen a #858 * matching Start record. So we have to #859 * insert this stop rather than do an update #860 */ At this point , an UPDATE statement has just been succesfully executed and numaffected should be 1 . But as it is equal to zero, a second INSERT is executed, and I finally get two rows in the radacct table. If somebody could help me, it would be very appreciated Thanks in advance Antoine Cavalie - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html