From 8b8b4451101d386066746d5a977ab034d40de5e4 Mon Sep 17 00:00:00 2001 From: kkalev Date: Thu, 10 Mar 2005 19:07:44 +0000 Subject: [PATCH] Add support for usrhiper in snmpfinger. Patch from Nick Bright --- dialup_admin/Changelog | 1 + dialup_admin/bin/snmpfinger | 3 +++ dialup_admin/conf/admin.conf | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dialup_admin/Changelog b/dialup_admin/Changelog index 2264fb5..23d6b4e 100644 --- a/dialup_admin/Changelog +++ b/dialup_admin/Changelog @@ -22,6 +22,7 @@ Ver 1.78: * Make nasXX_finger_type actually work since the place where nas information was stored was changed a long time ago. Bug noted by Nick Bright * In user_finger only set LD_LIBRARY_PATH once, not each time we call snmpfinger +* Add support for usrhiper in snmpfinger. Patch from Nick Bright Ver 1.75: * A LOT of security related fixes. Now dialupadmin should hopefully be secure enough to be accessed by normal users (not administrators). diff --git a/dialup_admin/bin/snmpfinger b/dialup_admin/bin/snmpfinger index 6500368..789a2a3 100755 --- a/dialup_admin/bin/snmpfinger +++ b/dialup_admin/bin/snmpfinger @@ -33,6 +33,9 @@ if ($type eq 'cisco'){ elsif ($type eq 'lucent'){ $walk =`$snmpwalkcmd .iso.org.dod.internet.private.enterprises.529.10.4.1.12`; } +elsif ($type eq 'usrhiper'){ + $walk =`$snmpwalkcmd .iso.org.dod.internet.private.enterprises.429.4.10.1.1.18`; +} while($walk=~/\"([\@\.\w\-]+?)\"/g){ $user=lc($1); diff --git a/dialup_admin/conf/admin.conf b/dialup_admin/conf/admin.conf index ba82e18..2074079 100644 --- a/dialup_admin/conf/admin.conf +++ b/dialup_admin/conf/admin.conf @@ -98,7 +98,7 @@ general_default_file: %{general_base_dir}/conf/default.vals general_finger_type: snmp # # Defines the nas type. This is only used by snmpfinger -# cisco and lucent are supported for now +# cisco, usrhiper and lucent are supported for now # general_nas_type: cisco general_snmpfinger_bin: %{general_base_dir}/bin/snmpfinger -- 2.1.4