summaryrefslogtreecommitdiffstats
path: root/raddb/sites-available/soh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:49:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:49:46 +0000
commit50b37d4a27d3295a29afca2286f1a5a086142cec (patch)
tree9212f763934ee090ef72d823f559f52ce387f268 /raddb/sites-available/soh
parentInitial commit. (diff)
downloadfreeradius-50b37d4a27d3295a29afca2286f1a5a086142cec.tar.xz
freeradius-50b37d4a27d3295a29afca2286f1a5a086142cec.zip
Adding upstream version 3.2.1+dfsg.upstream/3.2.1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'raddb/sites-available/soh')
-rw-r--r--raddb/sites-available/soh34
1 files changed, 34 insertions, 0 deletions
diff --git a/raddb/sites-available/soh b/raddb/sites-available/soh
new file mode 100644
index 0000000..86748b6
--- /dev/null
+++ b/raddb/sites-available/soh
@@ -0,0 +1,34 @@
+# This is a simple server for the MS SoH requests generated by the
+# peap module - see "eap.conf" for more info
+
+# Requests are ONLY passed through the authorize section, and cannot
+# current be proxied (in any event, the radius attributes used are
+# internal).
+
+server soh-server {
+ authorize {
+ if (&SoH-Supported == no) {
+ # client NAKed our request for SoH - not supported, or turned off
+ update config {
+ &Auth-Type = Accept
+ }
+ }
+ else {
+ # client replied; check something - this is a local policy issue!
+ if (&SoH-MS-Windows-Health-Status =~ /antivirus (warn|error) /) {
+ update config {
+ &Auth-Type = Reject
+ }
+ update reply {
+ &Reply-Message = 'You must have antivirus enabled & installed!'
+ }
+ }
+ else {
+ update config {
+ &Auth-Type = Accept
+ }
+ }
+ }
+ }
+}
+