## Default value

if test "x$cache" = "x"; then

HOST="`hostname`"

DBNAME=`ultrapossum_getconf DBNAME ultrapossum`
ORGANIZATION=`ultrapossum_getconf ORGANIZATION $HOST`
SUFFIX=`ultrapossum_getconf SUFFIX "o=$DBNAME"`
LDAPMASTER=`ultrapossum_getconf LDAPMASTER $HOST`
SLAVES=`ultrapossum_getconf SLAVES ""`

SECRETCF=""
APPDNMODE=""
ULTRAPOSSUM_ENCODE=""
ULTRAPOSSUM_DECODE=""

else
  . $CACHEDIR/$cache
fi ## cache

if test "x$ULTRAPOSSUMDEFAULT" = "x"; then
  if test -f "$ULTRAPOSSUMCF"; then
    . $ULTRAPOSSUMCF
  fi
  if test "x$EXTRACONFSUFFIX" != "x" &&
  	test -f "$ULTRAPOSSUMCF$EXTRACONFSUFFIX"
  then
    . $ULTRAPOSSUMCF$EXTRACONFSUFFIX
  fi

  if test -r "$SYSCONFDIR/secret.cf"; then
    . $SYSCONFDIR/secret.cf
  fi
  if test "x$EXTRACONFSUFFIX" != "x" &&
    test -r "$SYSCONFDIR/secret.cf$EXTRACONFSUFFIX"
  then
    . $SYSCONFDIR/secret.cf$EXTRACONFSUFFIX
  fi

  if test -d $APPSCONFDIR; then
    for f in `find $APPSCONFDIR -name '*.cf'`
    do
      if test -f $f; then
        cfs="$cfs $f"
      fi
    done
    for f in `find $APPSCONFDIR -name "*.cf$EXTRACONFSUFFIX"`
    do
      if test -f $f; then
        cfs="$cfs $f"
      fi
    done
  fi

  if test -f "$SYSCONFDIR/projects/$ULTRAPOSSUM_PROJECT"; then
    . $SYSCONFDIR/projects/$ULTRAPOSSUM_PROJECT
  fi
  if test "x$EXTRACONFSUFFIX" != "x" &&
    test -f "$SYSCONFDIR/projects/$ULTRAPOSSUM_PROJECT$EXTRACONFSUFFIX"
  then
    . $SYSCONFDIR/projects/$ULTRAPOSSUM_PROJECT$EXTRACONFSUFFIX
  fi

  if test "x$cfs" != "x"; then
    for cf in $cfs
    do
      if test -f "$cf"; then
        if test -r "$cf"; then
          verbose -n "Using $cf... "
          . $cf
          verbose "done"
        else
          echo "Warning: no permission to read $cf" 1>&2
        fi
      else
        echo "W: $cf not found" 1>&2
      fi
    done
  fi
fi
