#!/bin/sh
#  $Id: UpgradeFrom_400000.sh,v 1.4 2005/07/20 10:38:44 billwe Exp $
#  Copyright (C) 2005 Tarantella, Inc.
#  This software code contains proprietary information 
#  and should be treated as confidential.
#
#  Component: Installation/upgrade
#  Author: Bill Weir

FROM_VERSION=400903 TO_VERSION=410903

. ./util

the_edit=""

# Active Directory stuff
do_edit "--tarantella-config-ldap-timeout 30"
do_edit "--tarantella-config-ldap-discovery-timeout 30"
do_edit "--tarantella-config-components-kpasswdservice 1"

# ssl multi stuff
do_edit "--tarantella-config-ssldaemon-logfilter `get_value --tarantella-config-ssldaemon-logfilter`,multi/daemon/*error:sslmulti%%PID%%.log"
do_edit "--tarantella-config-ssldaemon-minprocesses 1"
do_edit "--tarantella-config-ssldaemon-maxprocesses 1"
do_edit "--tarantella-config-ssldaemon-restartdelay 10"
do_edit "--tarantella-config-ssldaemon-maxrestarts 10"
do_edit "--tarantella-config-ssldaemon-spawnload 1000"

# smart card stuff
do_edit "--tarantella-config-scard-enabled 1"
do_edit "--tarantella-config-scardpeconfig-listen 1"
do_edit "--tarantella-config-scardpeconfig-compression never"
do_edit "--tarantella-config-applaunch-auth-allowsmartcard true"
do_edit "--tarantella-config-applaunch-auth-smartcard-alwaysui-initialstate checked"
do_edit "--tarantella-config-applaunch-auth-smartcard-alwaysui-activestate enabled"

# option for CDM to listen on a single specified NIC
do_edit "--tarantella-config-cdm-externalnbtaddress \"*\""

# miscellany
do_edit "--tarantella-config-execpeconfig-launchsuperscript runsubscript.exp"
do_edit "--tarantella-config-server-connection-maxwebtopsessions 1000"
do_edit "--tarantella-config-components-usercountloginfilter 1"

# commit the actions
do_edit

exit 0
