From bbc7cabc6be0d5f8629724e9b0025e425168e1a8 Mon Sep 17 00:00:00 2001
From: Viacheslav Hletenko <v.gletenko@vyos.io>
Date: Wed, 1 Nov 2023 20:34:58 +0000
Subject: T4726: Remove accel-ppp RADIUS vendor validators

The vendor name could contain Uppercase or lowercase symbols and
not rely on the dictionary name but on dictionary value

  / # cat /usr/share/freeradius/dictionary.cisco | grep -i vendor
  VENDOR		Cisco				9

Another example
  VENDOR          Alcatel-IPD               6527

This way if we use `vendor=cisco` instead of `vendor=Cisco` it
will not work at all

Delete vendor validators
---
 src/validators/accel-radius-dictionary | 13 -------------
 1 file changed, 13 deletions(-)
 delete mode 100755 src/validators/accel-radius-dictionary

(limited to 'src/validators')

diff --git a/src/validators/accel-radius-dictionary b/src/validators/accel-radius-dictionary
deleted file mode 100755
index 05287e770..000000000
--- a/src/validators/accel-radius-dictionary
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-DICT_PATH=/usr/share/accel-ppp/radius
-NAME=$1
-
-if [ -n "$NAME" -a -e $DICT_PATH/dictionary.$NAME ]; then
-    exit 0
-else
-    echo "$NAME is not a valid RADIUS dictionary name"
-    echo "Please make sure that $DICT_PATH/dictionary.$NAME file exists"
-    exit 1
-fi
-
-- 
cgit v1.2.3