[Pkg-net-snmp-devel] Bug#602809: snmpd: Solution for "usr/sbin/snmptrapd: snmptrapd: unknown token authCommunity"

Thomas Nilsson thomas.nilsson at unixangst.com
Thu Dec 2 11:50:07 UTC 2010

Package: snmpd
Version: 5.4.3~dfsg-1
Severity: normal

The patch "61_vacm_missing_dependency_check.patch" incorrectly use
#ifdef USING_MIBII_VACM_CONF_MODULE in apps/snmptrapd_auth.c

That file does not include anything that includes
include/net-snmp/agent/agent_module_config.h where

compare to:

../snmptrapd_handlers.c:#include <net-snmp/agent/net-snmp-agent-includes.h>
../snmptrapd.c:#include <net-snmp/agent/net-snmp-agent-includes.h>

Proposed fix:
Add #include <net-snmp/agent/net-snmp-agent-includes.h> to
apps/snmptrapd_auth.c in patch 61_vacm_missing_dependency_check.patch

I'd suggest that the severity is bumped, as snmptrapd is unusable in
debians default configuration, as it only works if
"disableAuthorization yes" is added to /etc/snmp/snmptrapd.conf

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages snmpd depends on:
ii  adduser                     3.112+nmu2   add and remove users and groups
ii  debconf [debconf-2.0]       1.5.37       Debian configuration management sy
ii  libc6                       2.11.2-7     Embedded GNU C Library: Shared lib
ii  libsnmp15                   5.4.3~dfsg-1 SNMP (Simple Network Management Pr
ii  libwrap0                    7.6.q-19     Wietse Venema's TCP wrappers libra
ii  lsb-base                    3.2-26       Linux Standard Base 3.2 init scrip

snmpd recommends no packages.

snmpd suggests no packages.

-- Configuration Files:
/etc/default/snmpd changed [not included]
/etc/snmp/snmpd.conf [Errno 13] Permission denied: u'/etc/snmp/snmpd.conf'
/etc/snmp/snmptrapd.conf [Errno 13] Permission denied: u'/etc/snmp/snmptrapd.conf'

-- debconf information excluded

More information about the Pkg-net-snmp-devel mailing list