From d5b29befea6f955f8cbddd74f7bc2bd6a6274cd0 Mon Sep 17 00:00:00 2001 From: Travis Van Duyn Date: Thu, 3 Dec 2020 14:41:57 -0800 Subject: [PATCH] Added SNMP_USER_PERMISSIONS parameter and removed SNMP_USER_STRING parameter (#718) Added one new parameters: "SNMP_USER_PERMISSIONS": "RO|RW" to SNMP_USERS. This will be needed to support RW SNMPv3 in the future. Removed "SNMP_USER_STRING". This is not necessary because we have this SNMP_USER|user1 which shows the user string as "user1" as a key. --- doc/snmp/snmp-schema-addition.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/snmp/snmp-schema-addition.md b/doc/snmp/snmp-schema-addition.md index f2d4428a31..99088eca02 100644 --- a/doc/snmp/snmp-schema-addition.md +++ b/doc/snmp/snmp-schema-addition.md @@ -61,28 +61,28 @@ In the end this is used to produce */etc/snmp/snmpd.conf*. { "SNMP_USER":{ "":{ - "SNMP_USER_STRING":"", "SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv", "SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2", "SNMP_USER_ENCRYPTION_TYPE":"DES|AES", "SNMP_USER_AUTH_PASSWORD":"", - "SNMP_USER_ENCRYPTION_PASSWORD":"" + "SNMP_USER_ENCRYPTION_PASSWORD":"", + "SNMP_USER_PERMISSION": "RO|RW" }, "":{ - "SNMP_USER_STRING":"", "SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv", "SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2", "SNMP_USER_ENCRYPTION_TYPE":"DES|AES", "SNMP_USER_AUTH_PASSWORD":"", - "SNMP_USER_ENCRYPTION_PASSWORD":"" + "SNMP_USER_ENCRYPTION_PASSWORD":"", + "SNMP_USER_PERMISSION": "RO|RW" }, "":{ - "SNMP_USER_STRING":"", "SNMP_USER_TYPE":"noAuthNoPriv|AuthNoPriv|Priv", "SNMP_USER_AUTH_TYPE":"MD5|SHA|HMAC-SHA-2", "SNMP_USER_ENCRYPTION_TYPE":"DES|AES", "SNMP_USER_AUTH_PASSWORD":"", - "SNMP_USER_ENCRYPTION_PASSWORD":"" + "SNMP_USER_ENCRYPTION_PASSWORD":"", + "SNMP_USER_PERMISSION": "RO|RW" } } } @@ -99,7 +99,7 @@ Where: - SNMP_USER_ENCRYPTION_TYPE: String, defines which encryption type will be used for that SNMP user DES or AES. - SNMP_USER_AUTH_PASSWORD: String, defines which authentication password will be used for that SNMP user. - SNMP_USER_ENCRYPTION_PASSWORD: String, defines which encryption password will be used for that SNMP user. - +- SNMP_USER_PERMISSION: String, RO (Read-Only) or RW (Read-Write) defines what will be used for that SNMP user. New keys: