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@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