There's quite a few posts on making a custom reply message - changing the default reply in the post auth section. One shows that this works: if (reply:Reply-Message == "\r\nYou are already logged in - access denied\r\n\n"){ update reply { Reply-Message := "new sim use reply message" } } It does not matter what format I use, the default message "\r\nYou are already logged in - access denied\r\n\n" is all I ever get. This is on a freeradius 2 (on Ubuntu 8) install with default settings, any idea if this format is actually correct or what else needs to be done to change a reply message? Thanks all. Regards Jim
Hi, are you sure this update evaluates? IOW you did start radiusd -X? My guess is, == never return true. Regards... On 05/03/2014 05:21 AM, Sanity Computers wrote:
There’s quite a few posts on making a custom reply message – changing the default reply in the post auth section.
One shows that this works:
if (reply:Reply-Message == "\r\nYou are already logged in - access denied\r\n\n"){
update reply {
Reply-Message := "new sim use reply message"
}
}
It does not matter what format I use, the default message
"\r\nYou are already logged in - access denied\r\n\n"
is all I ever get. This is on a freeradius 2 (on Ubuntu 8) install with default settings, any idea if this format is actually correct or what else needs to be done to change a reply message? Thanks all.
Regards
Jim
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Sanity Computers wrote:
There’s quite a few posts on making a custom reply message – changing the default reply in the post auth section.
It's possible in most circumstances.
if (reply:Reply-Message == "\r\nYou are already logged in - access denied\r\n\n"){ update reply { Reply-Message := "new sim use reply message" } }
Except that Reply-Message will never get sent to the user with EAP. So setting it is useless.
It does not matter what format I use, the default message
"\r\nYou are already logged in - access denied\r\n\n"
is all I ever get.
Yes, because you have Simultaneous-Use set, and it over-rides any existing Reply-Message.
This is on a freeradius 2 (on Ubuntu 8) install with default settings, any idea if this format is actually correct or what else needs to be done to change a reply message? Thanks all.
Reply-Message doesn't work with EAP. Because of limitations with EAP. Reply-Message is fixed for Simultaneous-Use. Alan DeKok.
participants (3)
-
Alan DeKok -
Josip Almasi -
Sanity Computers