two Reply-Message returned to NAS

Alan DeKok aland at deployingradius.com
Wed Jun 22 12:14:43 UTC 2022


On Jun 22, 2022, at 7:56 AM, Can Paçacı <pacaci at servisnet.com.tr> 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.



More information about the Freeradius-Users mailing list