Thanks a lot.

>     Reply-Message = "LA CUENTA HA EXPIRADO PARA
> %{%{Stripped-User-Name}:-%{User-Name}}"
>     Codigo-Reject := Cuenta-Expirada
> }
>
> But it doesn't work.

 Nothing in the documentation suggests that will work.

Sometimes I don't know where can I found what I'm looking for, so I try different things :)
 
Yes.  Once the module returns "reject" or "userlock", the server stops
processing the section and returns.  The solution is:

       expiration {
               userlock = 1
       }
       if (userlock) {
               update reply {
                       Codigo-Reject := Curenta-Expirada
               }
       }

 This is documented in doc/configurable_failover, and to a lesser
extent in "man unlang".

Thanks Alan, I love Freeradius and your answers :D
 
____________________

 Ana Gallardo Gómez
____________________