#!/bin/bash set -euo pipefail # if container log level is trace: # print commands and their arguments as they are executed container log level eq trace && set -x # shellcheck disable=SC1091 source /tmp/openldap-test-lib.sh URI="ldap://${TEST_NODES}:3890" eventually has_entry "${URI}" "${TEST_SUFFIX}" ok "admin can read the database" expect_rc 32 ldapsearch -x -H "${URI}" -b "${TEST_SUFFIX}" -s base dn ok "anonymous users cannot read the database" expect_rc 0 bind_modify "${URI}" "${ADMIN_DN}" -a <