b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#!/sbin/sh
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# CDDL HEADER START
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# The contents of this file are subject to the terms of the
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# Common Development and Distribution License (the "License").
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# You may not use this file except in compliance with the License.
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# or http://www.opensolaris.org/os/licensing.
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# See the License for the specific language governing permissions
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# and limitations under the License.
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# When distributing Covered Code, include this CDDL HEADER in each
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# If applicable, add the following below this CDDL HEADER, with the
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# CDDL HEADER END
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# Use is subject to license terms.
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#ident "%Z%%M% %I% %E% SMI"
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync#
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync# Start/Stop client LDAP service
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync#
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync. /lib/svc/share/smf_include.sh
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsynccase "$1" in
96997a24d43e10899744f1d6fb5a0da615f673d7vboxsync'start')
96997a24d43e10899744f1d6fb5a0da615f673d7vboxsync if [ ! -r /var/ldap/ldap_client_file ]; then
96997a24d43e10899744f1d6fb5a0da615f673d7vboxsync echo "WARNING: /var/ldap/ldap_client_file is missing or not readable" >& 2
96997a24d43e10899744f1d6fb5a0da615f673d7vboxsync exit $SMF_EXIT_ERR_CONFIG
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync fi
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync exec /usr/lib/ldap/ldap_cachemgr
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync ;;
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync'stop')
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync exec /usr/lib/ldap/ldap_cachemgr -K
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync ;;
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync*)
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync echo "Usage: $0 { start | stop }"
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync exit 1
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync ;;
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsyncesac
b1ad3f99d0b864a8d2787ff732dd2c01f626f2d6vboxsync