mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Activate test for all operating systems, remove function keyword
This commit is contained in:
parent
7ea11c2544
commit
96e7ba5aaa
@ -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="";
|
||||
|
Loading…
x
Reference in New Issue
Block a user