two Reply-Message returned to NAS

Can Paçacı pacaci at
Thu Jun 23 05:45:07 UTC 2022

After changing the order it works. Now updates the radpostauth table. 
Thanks a lot
We need to try to understand the "unlang" more.


On 6/22/22 15:14, Alan DeKok wrote:
> On Jun 22, 2022, at 7:56 AM, Can Paçacı <pacaci at> wrote:
>> OK when we correct the syntax as you can said now returned only one the "Wrong Password" Reply-Message to NAS. It is ok but;
>    That's good.
>> the table radpostauth not updates as the Reply-Message (Wrong Password). It is blank, but when we request the wrong username it returned the correct reply-message "Reply-Message := "Please check your Username"  and updates the reason field of the table radpostauth correctly. But when we request with the wrong password it doesnt update the reason field of the table radpostauth.
>    Because you're probably adding the reply message after writing to SQL.  See the debug output for details.
>>      Post-Auth-Type REJECT {
>>                  -sql
>>          update reply {
>>              Reply-Message = "%{Reply-Message} Wrong Password"
>>          }
>> ..
>    i.e. "write to SQL, and after we've written to SQL, update the Reply-Message.
>    That's not going to work.
>    Change the order so that the Reply-Message is updated *before* writing to SQL.
>    Alan DeKok.
> -
> List info/subscribe/unsubscribe? See

Can Paçacı
pacaci at
Servisnet A.Ş.
Tel: 90 216 9999677
      90 530 5450952

More information about the Freeradius-Users mailing list