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