Custom reply message

Franz flamana at gmail.com
Wed May 11 21:46:14 CEST 2011


I got it working now, I was using the wrong operator = instead of := after
my if statement, here is my code:

if (reply:Reply-Message == "\r\nYou are already logged in - access
denied\r\n\n"){
                   update reply {
                            Reply-Message := "Acc\xe8s refus\xe9, votre code
est d\xe9j\xe0 en connexion"
                   }
                }
You were right, any message can be intercepted this way and manipulated to
display something else.
Thanks

On Wed, May 11, 2011 at 3:00 PM, Alan DeKok <aland at deployingradius.com>wrote:

> Franz wrote:
> > The thing is, if I put it there, the user will get the same error
> > message either for max login or for failed login. I've tried putting it
> > like so on the session part:
>
>   Why?  Why not in the "Post-Auth-Type Reject" section?
>
>  You can look for a specific Reply-Message, and then re-write it to be
> something else.  See "man unlang"
>
>  Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110511/d2e5b987/attachment.html>


More information about the Freeradius-Users mailing list