#
# Copyright (C) 2004 VA Linux Systems Japan, K.K.
#
# LICENSE NOTICE
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#

# $Id: 00client,v 1.2 2004/10/11 09:54:52 taru Exp $

case "x$MODULECATEGORY" in

  xclient|x)

# Defining Variables
if test "x$cache" = "x"; then

  if test "x$ldapconfdir" != "x"; then
    ldapconf="$ldapconfdir/ldap.conf"
  fi
  LDAPCONF=$(ultrapossum_getconf LDAPCONF "$ldapconf")

  # GENERAL OPTIONS
  LDAPSIZELIMIT=$(ultrapossum_getconf LDAPSIZELIMIT "")
  LDAPTIMELIMIT=$(ultrapossum_getconf LDAPTIMELIMIT "")
  LDAPDEREF=$(ultrapossum_getconf LDAPDEREF "")

  # SASL OPTIONS
  LDAPSASL_SECPROPS=$(ultrapossum_getconf LDAPSASL_SECPROPS "")

  # TLS OPTIONS
  TLSSYSCONFDIR=$(ultrapossum_getconf TLSSYSCONFDIR "$SYSCONFDIR/tls")
  if test -d $TLSSYSCONFDIR; then
    LDAPTLS_CACERTDIR=$(ultrapossum_getconf LDAPTLS_CACERTDIR "$localstatedir/lib/$PACKAGE/tls")
  fi
  LDAPTLS_REQCERT=$(ultrapossum_getconf LDAPTLS_REQCERT "")

fi

# Parsing configuration file
eval "`ultrapossum_parse_config client`"

# Calculating Logical Variables

if test "x$ULTRAPOSSUM_MODULE_CLIENT" = "xinstalled"; then
  :
fi

  ;;

esac
