diff options
author | mboelen <michael@cisofy.com> | 2014-11-04 02:42:37 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-11-04 02:42:37 +0300 |
commit | 3609da194a68d5ac2335e8b42af95f1491e4a71f (patch) | |
tree | d6d4a289f33f3938c7f1382eee005a17612ba42b | |
parent | b81d3cc3e02c326bf6ed5f1e22ad8152cbc134dd (diff) |
Properly parse PAM lines and add them to report [AUTH-9264]
-rw-r--r-- | include/tests_authentication | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_authentication b/include/tests_authentication index f9f61d87..1a0e152f 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -636,13 +636,13 @@ logtext "Result: file /etc/pam.conf exists" Display --indent 2 --text "- Checking PAM configuration files (pam.conf)" --result FOUND --color GREEN logtext "Test: searching PAM configuration files" - FIND=`cat /etc/pam.conf | grep -v "^#" | grep -v "^$" | sed 's/ /!space!/g'` + FIND=`cat /etc/pam.conf | grep -v "^#" | grep -v "^$" | sed 's/[[:space:]]/ /g' | sed 's/ / /g' | sed 's/ /:space:/g'` if [ "${FIND}" = "" ]; then logtext "Result: File has no configuration options defined (empty, or only filled with comments and empty lines)" else logtext "Result: found one or more configuration lines" for I in ${FIND}; do - I=`echo ${I} | sed 's/!space!/ /g'` + I=`echo ${I} | sed 's/:space:/ /g'` logtext "Found line: ${I}" done fi |