From a656e834731c7e84286a8ffb3f2d4cabb1e0ee7b Mon Sep 17 00:00:00 2001 From: "noussair.hamrit" Date: Tue, 8 Sep 2026 10:31:28 +0200 Subject: [PATCH] fix(freeradius): add post-auth reason to PostgreSQL queries - include reason in radpostauth INSERT columns - store Reply-Message as the authentication reason --- files/mods-config/postgres-queries.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/mods-config/postgres-queries.conf b/files/mods-config/postgres-queries.conf index 3b02d5e..a503b0b 100644 --- a/files/mods-config/postgres-queries.conf +++ b/files/mods-config/postgres-queries.conf @@ -732,10 +732,11 @@ post-auth { query = "\ INSERT INTO ${..postauth_table} \ - (username, reply, authdate ${..class.column_name}) \ + (username, reply, reason, authdate ${..class.column_name}) \ VALUES(\ '%{User-Name}', \ '%{reply:Packet-Type}', \ + '%{reply:Reply-Message}', \ '%S.%M' \ ${..class.reply_xlat})" } \ No newline at end of file