diff options
author | mboelen <michael@cisofy.com> | 2015-12-21 23:17:15 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-12-21 23:17:15 +0300 |
commit | d16b38eff83a8dca405e21e1c34205289f3d0832 (patch) | |
tree | d9db1eac3d4ead003f0e1b4fbfbabf0ddeb66c1e /include/tests_ldap | |
parent | 83a44827e03543146e39c37c33f14ebca6f40a29 (diff) |
Rename of logtext and report functions, upcoming year change
Diffstat (limited to 'include/tests_ldap')
-rw-r--r-- | include/tests_ldap | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/tests_ldap b/include/tests_ldap index 26c35c0b..d0d26d1c 100644 --- a/include/tests_ldap +++ b/include/tests_ldap @@ -5,7 +5,7 @@ # Lynis # ------------------ # -# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com) +# Copyright 2007-2016, Michael Boelen, CISOfy (michael.boelen@cisofy.com) # Web site: https://cisofy.com # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are @@ -36,10 +36,10 @@ IsRunning slapd if [ ${RUNNING} -eq 0 ]; then Display --indent 2 --text "- Checking OpenLDAP instance" --result "NOT FOUND" --color WHITE - logtext "Result: No running slapd process found." + LogText "Result: No running slapd process found." else Display --indent 2 --text "- Checking OpenLDAP instance" --result FOUND --color GREEN - logtext "Result: Found running slapd process" + LogText "Result: Found running slapd process" SLAPDFOUND=1 SLAPD_RUNNING=1 fi @@ -52,13 +52,13 @@ if [ ${SLAPD_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no LDAP-2224 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check presence slapd.conf" if [ ${SKIPTEST} -eq 0 ]; then - logtext "Test: Searching slapd.conf" + LogText "Test: Searching slapd.conf" for I in ${SLAPD_CONF_LOCS}; do if [ -f ${I}/slapd.conf ]; then - logtext "Result: found ${I}/slapd.conf" + LogText "Result: found ${I}/slapd.conf" SLAPD_CONF_LOCATION="${I}/slapd.conf" else - logtext "Result: ${I} does not contain slapd.conf" + LogText "Result: ${I} does not contain slapd.conf" fi done # Check if we found a valid location @@ -101,4 +101,4 @@ wait_for_keypress # #================================================================================ -# Lynis - Copyright 2007-2015, Michael Boelen, CISOfy - https://cisofy.com +# Lynis - Copyright 2007-2016, Michael Boelen, CISOfy - https://cisofy.com |