5 Oct
2011
5 Oct
'11
10:36 a.m.
On Wed, Oct 5, 2011 at 9:23 PM, Dagia Dorjsuren <dagmid_d@yahoo.com> wrote:
Hello,
How to add Reply-Message in freeradius? anyone advise me pls.
post-auth { ... update reply { Reply-Message = "Your message here\r\n" } ... }
For example : I would like to send "Your username or password is wrong" message to NAS if the someone to access to my freeradius via wrong password from that NAS
That's tricky. Checking for reject is easy enough (see example in the default post-auth section). Checking WHY the rejection happens (e.g. account expire, wrong password) is not easy. One workaround is to add your reply-message only when no there is no previous message (which is what "=" does. See "man unlang"). -- Fajar