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:
authorMichael Boelen <michael.boelen@cisofy.com>2020-06-27 11:21:24 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-06-27 11:21:24 +0300
commit96e7ba5aaa2f31d2879bc349dcee7ccf4f874386 (patch)
tree7e5436ccd854df02f1938f62fb62b2cd59cd9079 /include/tests_authentication
parent7ea11c25440296a603d78e8430b00e361691d2de (diff)
Activate test for all operating systems, remove function keyword
Diffstat (limited to 'include/tests_authentication')
-rw-r--r--include/tests_authentication13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 38d9caa1..3dbe08f7 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -285,18 +285,9 @@
# Test : AUTH-9229
# Description : Check password hashing methods vs. recommendations in crypt(5)
# Notes : Applicable to all Unix-like OS
- # Does not work correctly on AIX and macOS (unknown why)
# Requires read access to /etc/shadow (if it exists)
- case ${OS} in
- "AIX" | "macOS")
- PREQS_MET="NO"
- ;;
- *)
- PREQS_MET="YES"
- ;;
- esac
- function ParsePasswordEntry() {
+ ParsePasswordEntry() {
METHOD=$1
case ${METHOD} in
1:\* | 1:x | 0: | *:!* | *LOCK*)
@@ -338,7 +329,7 @@
esac
}
- Register --test-no AUTH-9229 --preqs-met ${PREQS_MET} --root-only YES --weight L --network NO --category security --description "Check password hashing methods"
+ Register --test-no AUTH-9229 --root-only YES --weight L --network NO --category security --description "Check password hashing methods"
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: Checking password hashing methods"
SHADOW="";