Custom Reply Message

johan firdianto johanfirdi at gmail.com
Fri Jul 24 02:02:01 CEST 2015


thank you. i got it.
so put unlang script in the proper location.
Pada 23 Jul 2015 23.15, "Pablo Umanzor" <info at redlibre.cl> menulis:

> for example if you are using dailycounter module, in authorize section:
>
> dailycounter {
>         reject = 1
>     }
>
>
>  if(reject){
>         update reply {
>             Reply-Message := "custom msg... blah blah"
>         }
>         reject
>     }
>
>
> regards
> pablou
>
> 2015-07-23 10:43 GMT-03:00 johan firdianto <johanfirdi at gmail.com>:
>
> > 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
> > -
> > 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