Skip to content

Commit

Permalink
Fix Bug #6928 - "Access-Reject" not logged in MySQL radpostauth table
Browse files Browse the repository at this point in the history
Confirmed working by a user in https://redmine.pfsense.org/issues/6928#note-5
  • Loading branch information
doktornotor authored Jan 30, 2017
1 parent bb9b1ba commit 620ad3d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1530,8 +1530,10 @@ function freeradius_serverdefault_resync() {
// post-auth section DATABASE 1
if (($sqlconf['varsqlconfincludeenable'] == 'on') && ($sqlconf['varsqlconfenablepostauth'] == 'Enable')) {
$varsqlconfpostauth = "$varsqlconf2failover {" . "\n\t\t\tsql" . "\n\t\t\t$varsqlconf2postauth" . "\n\t}";
$varsqlconfpostauthtypereject = 'sql';
} else {
$varsqlconfpostauth = '### sql DISABLED ###';
$varsqlconfpostauthtypereject = '# sql';
}

// Changing authorize section for plain mac auth
Expand Down Expand Up @@ -2163,7 +2165,7 @@ post-auth {
Post-Auth-Type REJECT {
# log failed authentications in SQL, too.
# sql
$varsqlconfpostauthtypereject
attr_filter.access_reject
}
}
Expand Down

0 comments on commit 620ad3d

Please sign in to comment.