From: Michael Ducharme Date: Wed, 2 Aug 2017 04:39:57 +0000 (-0500) Subject: Fix for mikrotik_snmp not working X-Git-Tag: release_3_0_16~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=207126e22e2d7ccb3d65bc2a055b3c73d4584bb1;p=thirdparty%2Ffreeradius-server.git Fix for mikrotik_snmp not working If the interface table is above a certain size, MikroTik does not show the ppp interfaces in the interfae table, but they are always in the mtxrInterfaceStatsName in MIKROTIK-MIB. Simply switching to that fixes the problem and should not break compatibility for current users. --- diff --git a/src/main/checkrad.in b/src/main/checkrad.in index d50101e850b..c0cf4401062 100644 --- a/src/main/checkrad.in +++ b/src/main/checkrad.in @@ -1251,8 +1251,8 @@ sub mikrotik_snmp { } } - # We want interface descriptions - $oid = "ifDescr"; + # We want mtxrInterfaceStatsName from MIKROTIK-MIB + $oid = "1.3.6.1.4.1.14988.1.1.14.1.1.2"; # Mikrotik doesnt give port IDs correctly to RADIUS :( # practically this would limit us to a simple only-one user limit for