encode-password revision 1194
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#!/bin/sh
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# CDDL HEADER START
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# The contents of this file are subject to the terms of the
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# Common Development and Distribution License, Version 1.0 only
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# (the "License"). You may not use this file except in compliance
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# with the License.
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# You can obtain a copy of the license at
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# trunk/opends/resource/legal-notices/OpenDS.LICENSE
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# See the License for the specific language governing permissions
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# and limitations under the License.
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# When distributing Covered Code, include this CDDL HEADER in each
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# file and include the License file at
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# add the following below this CDDL HEADER, with the fields enclosed
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# by brackets "[]" replaced with your own identifying information:
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# Portions Copyright [yyyy] [name of copyright owner]
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# CDDL HEADER END
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#
edd884cac454202076ea91062c7e26723718936bneil_a_wilson#
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# Portions Copyright 2006-2007 Sun Microsystems, Inc.
edd884cac454202076ea91062c7e26723718936bneil_a_wilson
edd884cac454202076ea91062c7e26723718936bneil_a_wilson
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# This script may be used to encode clear-text passwords or verify whether a
edd884cac454202076ea91062c7e26723718936bneil_a_wilson# given clear-text password matches a provided encoded password.
edd884cac454202076ea91062c7e26723718936bneil_a_wilsonOPENDS_INVOKE_CLASS="org.opends.server.tools.EncodePassword"
edd884cac454202076ea91062c7e26723718936bneil_a_wilsonexport OPENDS_INVOKE_CLASS
edd884cac454202076ea91062c7e26723718936bneil_a_wilson
edd884cac454202076ea91062c7e26723718936bneil_a_wilsonSCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=encode-password"
edd884cac454202076ea91062c7e26723718936bneil_a_wilsonexport SCRIPT_NAME_ARG
edd884cac454202076ea91062c7e26723718936bneil_a_wilson
edd884cac454202076ea91062c7e26723718936bneil_a_wilsonSCRIPT_DIR=`dirname "${0}"`
edd884cac454202076ea91062c7e26723718936bneil_a_wilson"${SCRIPT_DIR}/../lib/_server-script.sh" "${@}"
edd884cac454202076ea91062c7e26723718936bneil_a_wilson