#!/bin/sh set -e # VALUES: LIB_FILE="/usr/share/lliurex/llxcfg-ldap/common.sh" # main [ -e $LIB_FILE ] || exit_message "File not Found Exception: $LIB_FILE not present" . $LIB_FILE exists_and_unchanged || exit_message "ERROR: The LDAP Base DN is changed, the configuration not be regenerated until you run llxcfg-ldap init --force because is a new LDAP DATABASE " eval $(llxcfg-showvars LDAP_URI LDAP_HOST) test $LDAP_URI || exit_message "ERROR: The LDAP_URI is not present, do nothing ... exit" test $LDAP_HOST || exit_message "ERROR: LDAP HOST is not present, do nothing ... exit" exit 0