Alan,<br><br> While running that command in mysql it clear the session of user. But with radius unlang it is giving error in radius log.<br><br>Thanks<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 3:41 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com">aland@deployingradius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Bishal Pun wrote:<br>
<br>
> if(User-Name){<br>
> "%{sql: UPDATE radacct set AcctStopTime=ADDDATE(AcctStartTime,INTERVAL<br>
> AcctSessionTime SECOND), AcctTerminateCause='Clear-Stale Session' WHERE<br>
> UserName='%{User-Name}' and CallingStationId='%{Calling-Station-Id}' and<br>
> AcctStopTime is null}"<br>
> }<br>
<br>
</div>  That should work, barring SQL issues.<br>
<div class="im"><br>
> but it doesn't help me, giving me error like<br>
> Wed Jan 12 15:16:14 2011 : Error: rlm_sql_mysql: MYSQL Error: No Fields<br>
<br>
</div>  That's a MySQL issue.<br>
<br>
> any help?<br>
<br>
  Can you run the command from the mysql client?  i.e. without RADIUS<br>
being involved?<br>
<font color="#888888"><br>
 Alan DeKok.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</font></blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>