Re: Custom reply message

2011-05-11 Thread Franz
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

2011-05-11 Thread Alan DeKok
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

2011-05-11 Thread Franz
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

2011-05-11 Thread Alan DeKok
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

2011-05-10 Thread Franz
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