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 = "\
|
query = "\
|
||||||
INSERT INTO ${..postauth_table} \
|
INSERT INTO ${..postauth_table} \
|
||||||
(username, reply, authdate ${..class.column_name}) \
|
(username, reply, reason, authdate ${..class.column_name}) \
|
||||||
VALUES(\
|
VALUES(\
|
||||||
'%{User-Name}', \
|
'%{User-Name}', \
|
||||||
'%{reply:Packet-Type}', \
|
'%{reply:Packet-Type}', \
|
||||||
|
'%{reply:Reply-Message}', \
|
||||||
'%S.%M' \
|
'%S.%M' \
|
||||||
${..class.reply_xlat})"
|
${..class.reply_xlat})"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user