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.*
Yes it will depend on which module you are using. Why dont you do a simple grep in your freeradius folder and locate the possible suspects something like this grep 'You are already logged in - access denied' * -r Dont forget to restart radius after making the changes. On Wed, Jul 22, 2015 at 9:29 PM, Andrés Gómez <andres.gomez.ruiz@gmail.com> wrote:
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
On Jul 22, 2015, at 5:59 PM, Andrés Gómez <andres.gomez.ruiz@gmail.com> wrote:
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:
That Reply-Message isn't configurable.
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?
Edit the Reply-Message. post-auth { ... Post-Auth-Type Reject { update reply { Reply-Message := "Rejected because" } } ... } Alan DeKok.
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@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
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@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@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
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@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@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@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
>
thank you. i got it.
so put unlang script in the proper location.
Pada 23 Jul 2015 23.15, "Pablo Umanzor" <info@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@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@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@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
participants (5)
-
Alan DeKok -
Andrés Gómez -
johan firdianto -
Mrinal K -
Pablo Umanzor