policy.conf 356 B

123456789101112131415
  1. policy{
  2. filter_username {
  3. if (User-Name =~ /([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:.]?([0-9a-f]{2})[-:]?([0-9a-f]{2})[-:.]?([0-9a-f]{2})[-:]?([0-9a-f]{2})/i) {
  4. update request {
  5. User-Name := "%{tolower:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}"
  6. }
  7. }
  8. else {
  9. noop
  10. }
  11. }
  12. }