SIMULATE='n'
YES="n"
-VERSION="1.3"
+VERSION="1.4"
# console colors:
RED=""
trap cleanup_tmp_file INT TERM EXIT ABRT
+ empty_line
+ info "Checking existence of necessary password files ..."
+ local all_files_there="y"
+ for INSTANCE in "${USED_INSTANCES[@]}" ; do
+ BIND_PW_FILE="${BIND_PW_FILES[${INSTANCE}]}"
+ debug "Checking for '${CYAN}${BIND_PW_FILE}${NORMAL}'."
+ if [[ -f "${BIND_PW_FILE}" && -r "${BIND_PW_FILE}" ]] ; then
+ debug "Password file '${CYAN}${BIND_PW_FILE}${NORMAL}' exists and is readable."
+ else
+ error "Password file '${RED}${BIND_PW_FILE}${NORMAL}' does not exists or is not redable."
+ all_files_there="n"
+ fi
+ done
+ empty_line
+
+ if [[ "${all_files_there}" == "n" ]] ; then
+ exit 6
+ fi
+
for USER in "${USERS[@]}" ; do
for INSTANCE in "${USED_INSTANCES[@]}" ; do
LDAP_URL="${LDAP_URLS[${INSTANCE}]}"