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>2017-03-01 18:07:45 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-03-01 18:07:45 +0300
commitd080f8f6b7b6838efb979d445e5e77f770a78b8e (patch)
tree2ccda511d48674dddd61c3e9c3baa90234f6a363 /plugins
parentd15ba9607fe2b60eab4dc923bcaad47998283c7d (diff)
Initialize variable
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugin_pam_phase15
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/plugin_pam_phase1 b/plugins/plugin_pam_phase1
index a190bf16..e7c706a4 100644
--- a/plugins/plugin_pam_phase1
+++ b/plugins/plugin_pam_phase1
@@ -15,6 +15,8 @@
#-----------------------------------------------------
#########################################################################
#
+ MAX_PASSWORD_RETRY=""
+
PAM_DIRECTORY="/etc/pam.d"
# Test : PLGN-0010
# Description : Check PAM configuration
@@ -218,7 +220,6 @@
if [ "${CREDITS_L_PASSWORD}" = "" ]; then CREDITS_L_PASSWORD=1; fi
if [ "${CREDITS_O_PASSWORD}" = "" ]; then CREDITS_O_PASSWORD=1; fi
if [ "${CREDITS_U_PASSWORD}" = "" ]; then CREDITS_U_PASSWORD=1; fi
- if [ "${MAX_PASSWORD_RETRY}" = "" ]; then MAX_PASSWORD_RETRY=1; fi
if [ "${MIN_PASSWORD_CLASS}" = "" ]; then MIN_PASSWORD_CLASS=0; fi
if [ "${MIN_PASSWORD_LENGTH}" = "" ]; then MIN_PASSWORD_LENGTH=6; fi
@@ -400,7 +401,7 @@ if [ ${PAM_PASSWORD_STRENGTH_TESTED} -eq 1 ]; then
fi
# Show how many retries are allowed to change password
-if [ ! "${MAX_PASSWORD_RETRY}" = "" ]; then
+if [ ! -z "${MAX_PASSWORD_RETRY}" ]; then
LogText "[PAM] Password maximum retry: ${MAX_PASSWORD_RETRY}"
Report "max_password_retry=${MAX_PASSWORD_RETRY}"
else