Alan,
While running that command in mysql it clear the session of user. But with radius unlang it is giving error in radius log.
Thanks
Bishal Pun wrote:That should work, barring SQL issues.
> if(User-Name){
> "%{sql: UPDATE radacct set AcctStopTime=ADDDATE(AcctStartTime,INTERVAL
> AcctSessionTime SECOND), AcctTerminateCause='Clear-Stale Session' WHERE
> UserName='%{User-Name}' and CallingStationId='%{Calling-Station-Id}' and
> AcctStopTime is null}"
> }
That's a MySQL issue.
> but it doesn't help me, giving me error like
> Wed Jan 12 15:16:14 2011 : Error: rlm_sql_mysql: MYSQL Error: No Fields
> any help?
Can you run the command from the mysql client? i.e. without RADIUS
being involved?
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html