Resolves: RHEL-101614 and RHEL-103557 fix help and manpage for net-snmp-create-v3-user script

Signed-off-by: Josef Ridky <jridky@redhat.com>
This commit is contained in:
Josef Ridky 2025-10-29 12:44:23 +01:00
parent 747ea5d516
commit d05fb84611
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,47 @@
diff -urNp a/man/net-snmp-create-v3-user.1.def b/man/net-snmp-create-v3-user.1.def
--- a/man/net-snmp-create-v3-user.1.def 2025-10-29 12:25:21.971392033 +0100
+++ b/man/net-snmp-create-v3-user.1.def 2025-10-29 12:37:33.519687164 +0100
@@ -3,7 +3,7 @@
net-snmp-create-v3-user \- create a SNMPv3 user in net-snmp configuration file
.SH SYNOPSIS
.PP
-.B net-snmp-create-v3-user [-ro] [-A authpass] [-a MD5|SHA] [-X privpass] [-x AES]
+.B net-snmp-create-v3-user [-ro] [-A authpass] [-a MD5|SHA|SHA-512|SHA-384|SHA-256|SHA-224] [-X privpass] [-x AES|AES128|AES192|AES256]
.B [username]
.SH DESCRIPTION
.PP
@@ -21,11 +21,11 @@ creates a user with read-only permission
\fB\-A authpass\fR
specifies the authentication password
.TP
-\fB\-a MD5|SHA\fR
+\fB\-a MD5|SHA|SHA-512|SHA-384|SHA-256|SHA-224\fR
specifies the authentication password hashing algorithm
.TP
\fB\-X privpass\fR
specifies the encryption password
.TP
-\fB\-x AES\fR
+\fB\-x AES|AES128|AES192|AES256\fR
specifies the encryption algorithm
diff -urNp a/net-snmp-create-v3-user.in b/net-snmp-create-v3-user.in
--- a/net-snmp-create-v3-user.in 2025-10-29 12:25:22.113390318 +0100
+++ b/net-snmp-create-v3-user.in 2025-10-29 12:36:08.321047537 +0100
@@ -40,7 +40,7 @@ case $1 in
Aalgorithm=$1
shift
;;
- md5|sha)
+ md5|sha|sha-512|sha-384|sha-256|sha-224)
Aalgorithm=$(echo "$1" | tr a-z A-Z)
shift
;;
@@ -90,7 +90,7 @@ if test "x$usage" = "xyes"; then
echo ""
echo "Usage:"
echo " net-snmp-create-v3-user [-ro] [-A authpass] [-X privpass]"
- echo " [-a MD5|SHA|SHA-512|SHA-384|SHA-256|SHA-224] [-x AES] [username]"
+ echo " [-a MD5|SHA|SHA-512|SHA-384|SHA-256|SHA-224] [-x AES|AES128|AES192|AES256] [username]"
echo ""
exit
fi

View File

@ -62,6 +62,7 @@ Patch32: net-snmp-5.9.4-kernel-6.7.patch
Patch33: net-snmp-5.9-deleted-iface.patch
Patch34: net-snmp-5.9.4-revert-n-snmptrapd-log.patch
Patch35: net-snmp-5.8-callback-fix.patch
Patch36: net-snmp-5.9.4-create-user-usage.patch
# Modern RPM API means at least EL6
Patch101: net-snmp-5.8-modern-rpm-api.patch
@ -249,6 +250,7 @@ cp %{SOURCE10} .
%patch33 -p1 -b .iface
%patch34 -p1 -b .revert-n-snmptrapd-log
%patch35 -p1 -b .callback-fix
%patch36 -p1 -b .create-user-usage
%patch101 -p1 -b .modern-rpm-api
%patch102 -p1
@ -521,6 +523,8 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
* Wed Oct 22 2025 Josef Ridky <jridky@redhat.com> - 1:5.9.1-18
- fix inverted usage of -n in snmptrapd (RHEL-101078)
- fix use after free issue (RHEL-121091)
- fix help and manpage for net-snmp-create-v3-user
script(RHEL-101614 and RHEL-103557)
* Tue Jul 16 2024 Josef Ridky <jridky@redhat.com> - 1:5.9.1-17
- fix segfault with error on subcontainer (RHEL-46033)