Andrea Gabellini escreveu:
Hi,
I'm using the post-auth section to log user's attempt. Is it possible, in case of REJECT, to log the full description of the rejection instead of the useless 'Access-Reject' string?I added a "message" field to the table and use the following query:
"INSERT into ${postauth_table} (id, user, pass, reply, message, date, callingstationid) values ('', '%{User-Name}', '%{User-Password}', '%{reply:Packet-Type}', REPLACE(REPLACE('%{reply:Reply-Message}', '=5Cr', ''), '=5Cn', ''), NOW(), '%{Calling-Station-Id}')"
Thanks,
this is a very simple solution. But now I have another problem... I need to set the Reply-Message. How can I, for example, put the string 'Login incorrect' if the user enter the wrong password? Is it possible to get the same string of the radius.log file?
Andrea
--------------------------------------- Just what part of "NO" didn't you understand? --------------------------------------- Ing. Andrea Gabellini Email: [EMAIL PROTECTED] Tel: 0549 886111 (Italy) Tel. +378 0549 886111 (International)
Intelcom San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Repubblic of San Marino
http://www.omniway.sm http://www.intelcom.sm
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

