You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

soh 814B

12345678910111213141516171819202122232425262728293031323334
  1. # This is a simple server for the MS SoH requests generated by the
  2. # peap module - see "eap.conf" for more info
  3. # Requests are ONLY passed through the authorize section, and cannot
  4. # current be proxied (in any event, the radius attributes used are
  5. # internal).
  6. server soh-server {
  7. authorize {
  8. if (SoH-Supported == no) {
  9. # client NAKed our request for SoH - not supported, or turned off
  10. update config {
  11. Auth-Type = Accept
  12. }
  13. }
  14. else {
  15. # client replied; check something - this is a local policy issue!
  16. if (SoH-MS-Windows-Health-Status =~ /antivirus (warn|error) /) {
  17. update config {
  18. Auth-Type = Reject
  19. }
  20. update reply {
  21. Reply-Message = "You must have antivirus enabled & installed!"
  22. }
  23. }
  24. else {
  25. update config {
  26. Auth-Type = Accept
  27. }
  28. }
  29. }
  30. }
  31. }