From 064bda9e209e6c8ec00a60b3394827bd5fe21a24 Mon Sep 17 00:00:00 2001 From: "noussair.hamrit" Date: Tue, 21 Apr 2026 12:51:12 +0200 Subject: [PATCH] feat(freeradius): log Reply-Message in radpostauth instead of only packet type - Store Reply-Message when available, fallback to Packet-Type otherwise - Improves visibility of authentication failures (e.g. "already logged in") --- files/mods-config/queries.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/mods-config/queries.conf b/files/mods-config/queries.conf index 7100bbf..be755fd 100644 --- a/files/mods-config/queries.conf +++ b/files/mods-config/queries.conf @@ -684,10 +684,11 @@ post-auth { query = "\ INSERT INTO ${..postauth_table} \ - (username, reply, authdate ${..class.column_name}) \ + (username, reply, reason, authdate ${..class.column_name}) \ VALUES ( \ '%{SQL-User-Name}', \ '%{reply:Packet-Type}', \ + '%{reply:Reply-Message}', \ '%S.%M' \ ${..class.reply_xlat})" } \ No newline at end of file