Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schurz <Martin.Schurz@t-systems.com>2021-01-13 17:07:12 +0300
committerMartin Schurz <Martin.Schurz@t-systems.com>2021-01-13 17:07:12 +0300
commit2d1b217c6c0044baa386d2f5870b37f4f69a1523 (patch)
tree1575bd81108d3b1569eb0c188b25642aaca6cb31 /include/tests_authentication
parent0b6f3006934822ca75b19cc6aed1f796c6eeffa6 (diff)
[AUTH-9229] resolve inconsistency with AUTH-9230
Diffstat (limited to 'include/tests_authentication')
-rw-r--r--include/tests_authentication8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 3366bb9a..2712aa34 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -294,12 +294,12 @@
# disabled | shadowed | no password | locked account (can be literal *LOCK* or something like LOCKED)
;;
*:\$5\$*| *:\$6\$*)
- # sha256crypt | sha512crypt: check number of rounds, should be >5000
+ # sha256crypt | sha512crypt: check number of rounds, should be >=5000
ROUNDS=$(echo "${METHOD}" | sed -n 's/.*rounds=\([0-9]*\)\$.*/\1/gp')
if [ -z "${ROUNDS}" ]; then
- echo 'sha256crypt/sha512crypt(default<=5000rounds)'
- elif [ "${ROUNDS}" -le 5000 ]; then
- echo 'sha256crypt/sha512crypt(<=5000rounds)'
+ echo 'sha256crypt/sha512crypt(default=5000rounds)'
+ elif [ "${ROUNDS}" -lt 5000 ]; then
+ echo 'sha256crypt/sha512crypt(<5000rounds)'
fi
;;
*:\$y\$* | *:\$gy\$* | *:\$2b\$* | *:\$7\$*)