Re: Custom reply message
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 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 > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Custom reply message
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
Re: Custom reply message
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: sql { reject = 1 } if (reject){ update reply{ Reply-Message := "already in use error" } ok = reject } But no message is being returned. On Wed, May 11, 2011 at 3:28 AM, Alan DeKok wrote: > Franz wrote: > > Hi, > > I have freeradius 2.1.10 installed and was able to customize some reply > > messages to another language, the only one I am unable to change is the > > one for simultaneous login check, where would I chnage this reply > message? > > You can always edit the Reply-Message in the "post-auth" section. > > See "man unlang" for attribute editing operators. > > Alan DeKok. > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Custom reply message
Franz wrote: > Hi, > I have freeradius 2.1.10 installed and was able to customize some reply > messages to another language, the only one I am unable to change is the > one for simultaneous login check, where would I chnage this reply message? You can always edit the Reply-Message in the "post-auth" section. See "man unlang" for attribute editing operators. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Custom reply message
Hi, I have freeradius 2.1.10 installed and was able to customize some reply messages to another language, the only one I am unable to change is the one for simultaneous login check, where would I chnage this reply message? Thanks - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html