From: kkalev Date: Wed, 18 Sep 2002 12:38:17 +0000 (+0000) Subject: In snmpfinger also consider '-' as a valid character for a username X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=ea9c9eef7fcf770044e916c4e41f9900acedc664;p=freeradius-dialup-admin.git In snmpfinger also consider '-' as a valid character for a username --- diff --git a/Changelog b/Changelog index 6ed20b9..16101e7 100644 --- a/Changelog +++ b/Changelog @@ -2,6 +2,7 @@ Ver 1.60: * Use require_once when including lib/functions.php3 in lib/sql * In the buttons toolbar Edit User should not be clickable. * Add an arrow gif in htdocs/images to be used in the buttons page when adding multiple finger pages +* In snmpfinger also consider '-' as a valid character for a username Ver 1.59: * Small html fixes in user_edit.php3 and password.php3 * Show number of failed logins in the last 7 days in the user admin page diff --git a/bin/snmpfinger b/bin/snmpfinger index d8e24dc..94353f9 100755 --- a/bin/snmpfinger +++ b/bin/snmpfinger @@ -7,7 +7,7 @@ $comm=shift || 'public'; $walk =`$SNMPWALK $host $comm .iso.org.dod.internet.private.enterprises.9.2.9.2.1.18`; $walk.=`$SNMPWALK $host $comm .iso.org.dod.internet.private.enterprises.9.9.27.1.1.3.1.7`; -while($walk=~/\"(\w+?)\"/g){ +while($walk=~/\"([\w\-]+?)\"/g){ $user=lc($1); if($out) { $out=$out.",'$user'";