On Thu, May 30, 2002 at 10:10:41AM +0200, Dirk Tanneberger wrote:
> Hi,
> 
> I have a problem with accounting update packets.
> I use freeradius 0.5 with mysql authentification and accounting.
> Start- and stop-records are write correctly in the database, but when
> the router send accounting updates, these will not add correct into the database.
> In sqltrace.sql I see, that the server will do an update,  but the field UserName 
>leave
> blank and the update wouldn't exec.
> The configuration in sql.conf for UserName in sql_update are identical with sql_stop 
>statement.
> Where can I find the problem? Has anybody an idea?

Yepp, i described this here a few days ago, i also sent a patch to solve
this to the devel list yesterday, no replies yet, i was starting to
wonder if i was the only one seeing this.

For a quick fix you can add the line:
sql_set_user(inst, request, sqlusername, 0);
right below
case PW_STATUS_ALIVE:
somewhere around line 453 in rlm_sql.c.

That solved the problem for me.


Could one of the developers please take a look at the patch sent to
-devel so this could perhaps be integrated?

-- 
Simon


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to