diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 12:32:48 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 12:32:48 +0300 |
commit | 17137408d29d004e7ec1512ab7e6b7d30ff28ebe (patch) | |
tree | 85991b6df7fa8f8d49845b48c43038b049b68121 /include/tests_ldap | |
parent | 8321b986891eae1f928434ea9ac0003ae743ab67 (diff) |
Use IsRunning exit code instead of variable
Diffstat (limited to 'include/tests_ldap')
-rw-r--r-- | include/tests_ldap | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/tests_ldap b/include/tests_ldap index 0c6ae10e..cd7be982 100644 --- a/include/tests_ldap +++ b/include/tests_ldap @@ -36,9 +36,7 @@ # Description : Check running OpenLDAP instance Register --test-no LDAP-2219 --weight L --network NO --category security --description "Check running OpenLDAP instance" if [ ${SKIPTEST} -eq 0 ]; then - # TODO adding additional slash needed? - IsRunning slapd - if [ ${RUNNING} -eq 0 ]; then + if IsRunning "slapd"; then Display --indent 2 --text "- Checking OpenLDAP instance" --result "${STATUS_NOT_FOUND}" --color WHITE LogText "Result: No running slapd process found." else |