Custom Reply Message

johan firdianto johanfirdi at gmail.com
Thu Jul 23 15:43:36 CEST 2015


how do we make custom rejected message caused by invalid password or not
enough credit (session limit) or session is expired ?
Pada 23 Jul 2015 03.27, "Pablo Umanzor" <info at redlibre.cl> menulis:

> in authorize section , if you are using sql module  backend + freeradius
>
> sql {
>
> reject = 1 }
>
>  if(reject){
>         update reply {
>             Reply-Message := "Login Failed. blah blah"
>         }
>         reject
>         }
>
>
> 2015-07-22 12:59 GMT-03:00 Andrés Gómez <andres.gomez.ruiz at gmail.com>:
>
> > Hi everybody.
> >
> > Sorry, I know it is a basic question, I know the reply message are
> > configurable in the module files, and other files. But I can't find this
> > one that I receive when I use the Simultaneous-use attribute:
> >
> > # radtest 999 999 localhost 10 password
> > Sending Access-Request of id 48 to 127.0.0.1 port 1812
> >         User-Name = "999"
> >         User-Password = "999"
> >         NAS-IP-Address = 127.0.1.1
> >         NAS-Port = 10
> >         Message-Authenticator = 0x00000000000000000000000000000000
> > rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=48,
> > length=68
> >         Reply-Message = "\r\nYou are already logged in - access
> > denied\r\n\n"
> >
> > I want to change that Reply-Message = "\r\nYou are already logged in -
> > access denied\r\n\n" . But I have found everywhere and I can't find its
> > config file.
> >
> > How can I do it?
> >
> > Regards
> >
> >
> > --
> > *C. Andrés Gómez R.*
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list