fix(freeradius): add post-auth reason to PostgreSQL queries
- include reason in radpostauth INSERT columns - store Reply-Message as the authentication reason
This commit is contained in:
@@ -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})"
|
||||
}
|
||||
Reference in New Issue
Block a user