From owner-svn-src-stable@freebsd.org  Fri Dec 30 23:52:21 2016
Return-Path: <owner-svn-src-stable@freebsd.org>
Delivered-To: svn-src-stable@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A3E6C98535;
 Fri, 30 Dec 2016 23:52:21 +0000 (UTC)
 (envelope-from ngie@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
 [IPv6:2610:1c1:1:6068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id F1FCD1497;
 Fri, 30 Dec 2016 23:52:20 +0000 (UTC)
 (envelope-from ngie@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
 by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBUNqKjM067761;
 Fri, 30 Dec 2016 23:52:20 GMT (envelope-from ngie@FreeBSD.org)
Received: (from ngie@localhost)
 by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBUNqKeD067760;
 Fri, 30 Dec 2016 23:52:20 GMT (envelope-from ngie@FreeBSD.org)
Message-Id: <201612302352.uBUNqKeD067760@repo.freebsd.org>
X-Authentication-Warning: repo.freebsd.org: ngie set sender to
 ngie@FreeBSD.org using -f
From: Ngie Cooper <ngie@FreeBSD.org>
Date: Fri, 30 Dec 2016 23:52:20 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
 svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject: svn commit: r310875 - stable/11/etc
X-SVN-Group: stable-11
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-src-stable@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: SVN commit messages for all the -stable branches of the src tree
 <svn-src-stable.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-stable>, 
 <mailto:svn-src-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-stable/>
List-Post: <mailto:svn-src-stable@freebsd.org>
List-Help: <mailto:svn-src-stable-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-stable>,
 <mailto:svn-src-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Dec 2016 23:52:21 -0000

Author: ngie
Date: Fri Dec 30 23:52:19 2016
New Revision: 310875
URL: https://svnweb.freebsd.org/changeset/base/310875

Log:
  MFC r310458,r310466:
  
  r310458:
  
  Group all loadable modules in the %default section
  
  This will allow new users to uncomment the modules and have things work
  with less head scratching, in the event they decide to uncomment any
  of the section separators, e.g. %usm or %vcm, as the module loading is
  only effective in the %default section.
  
  r310466:
  
  Don't hardcode $(securityModelUSM) (3) in the authPriv example under the %vacm
  section

Modified:
  stable/11/etc/snmpd.config
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/etc/snmpd.config
==============================================================================
--- stable/11/etc/snmpd.config	Fri Dec 30 23:46:11 2016	(r310874)
+++ stable/11/etc/snmpd.config	Fri Dec 30 23:52:19 2016	(r310875)
@@ -112,12 +112,63 @@ sysObjectId 	= 1.3.6.1.4.1.12325.1.1.2.1
 
 snmpEnableAuthenTraps = 2
 
+# Uncomment `begemotSnmpdModulePath.".." = ".."' entries below to enable
+# modules
+
+#
+# Bridge module
+#  This requires the mibII module.
+#
+#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
+
+#
+# Host resources module
+#  This requires the mibII module.
+#
+#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
+
+#
+# LM75 Sensor module
+#
+#begemotSnmpdModulePath."lm75" = "/usr/lib/snmp_lm75.so"
+
+#
+# MIB-2 module
+#
+begemotSnmpdModulePath."mibII"	= "/usr/lib/snmp_mibII.so"
+
+#
+# Netgraph module
+#
+#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
+
+#
+# pf(4) module
+#
+#begemotSnmpdModulePath."pf"	= "/usr/lib/snmp_pf.so"
+
+#
+# SNMPv3 Notification Targets
+#
+# begemotSnmpdModulePath."target"	= "/usr/lib/snmp_target.so"
+
 #
 # SNMPv3 User-based security module - must be loaded for SNMPv3 USM
 #
 #begemotSnmpdModulePath."usm"	= "/usr/lib/snmp_usm.so"
 
 #
+# SNMPv3 View-based Access Control module
+#
+#begemotSnmpdModulePath."vacm"	= "/usr/lib/snmp_vacm.so"
+
+#
+# Wireless module
+#  This requires the mibII module.
+#
+#begemotSnmpdModulePath."wlan" = "/usr/lib/snmp_wlan.so"
+
+#
 # SNMPv3 USM User definition.
 #
 
@@ -147,11 +198,6 @@ snmpEnableAuthenTraps = 2
 #
 
 #
-# SNMPv3 View-based Access Control module
-#
-#begemotSnmpdModulePath."vacm"	= "/usr/lib/snmp_vacm.so"
-
-#
 # Definition of view-based access control entries.
 #
 #%vacm
@@ -210,15 +256,10 @@ snmpEnableAuthenTraps = 2
 #
 #Read-write-notify access to restricted for SNMPv3 USM users with authPriv
 #
-# vacmAccessStatus.$(write)."".3.$(authPriv) = 4
-# vacmAccessReadViewName.$(write)."".3.$(authPriv) = "restricted"
-# vacmAccessWriteViewName.$(write)."".3.$(authPriv) = "restricted"
-# vacmAccessNotifyViewName.$(write)."".3.$(authPriv) = "restricted"
-
-#
-# SNMPv3 Notification Targets
-#
-# begemotSnmpdModulePath."target"	= "/usr/lib/snmp_target.so"
+# vacmAccessStatus.$(write)."".$(securityModelUSM).$(authPriv) = 4
+# vacmAccessReadViewName.$(write)."".$(securityModelUSM).$(authPriv) = "restricted"
+# vacmAccessWriteViewName.$(write)."".$(securityModelUSM).$(authPriv) = "restricted"
+# vacmAccessNotifyViewName.$(write)."".$(securityModelUSM).$(authPriv) = "restricted"
 
 #%target
 # Send notifications to target tag "test"
@@ -259,49 +300,12 @@ snmpEnableAuthenTraps = 2
 # snmpTargetAddrParams.$(tagremote) = $(tag)
 # snmpTargetAddrRowStatus.$(tagremote) = 1
 
-#
-# Load MIB-2 module
-#
-begemotSnmpdModulePath."mibII"	= "/usr/lib/snmp_mibII.so"
-
 # Force a polling rate for the 64-bit interface counters in case
 # the automatic computation is wrong (which may be the case if an interface
 # announces the wrong bit rate via its MIB).
 #%mibII
 #begemotIfForcePoll = 2000
 
-
-# Netgraph module
-#
-#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
-#
 #%netgraph
 #begemotNgControlNodeName = "snmpd"
 
-#
-# LM75 Sensor module
-#
-#begemotSnmpdModulePath."lm75" = "/usr/lib/snmp_lm75.so"
-
-#
-# pf(4) module
-#
-#begemotSnmpdModulePath."pf"	= "/usr/lib/snmp_pf.so"
-
-#
-# Host resources module
-#  This requires the mibII module.
-#
-#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so"
-
-#
-# Bridge module
-#  This requires the mibII module.
-#
-#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so"
-
-#
-# Wireless module
-#  This requires the mibII module.
-#
-#begemotSnmpdModulePath."wlan" = "/usr/lib/snmp_wlan.so"