Skip Headers
Oracle® Fusion Middleware Man Page Reference for Oracle Directory Server Enterprise Edition
11g Release 1 (11.1.1.7.0)

Part Number E28967-01
Go to Documentation Home
Home
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

pwdhash

print the encrypted form of a password by using one of the server's encryption algorithms

Synopsis

install-path/bin/pwdhash 
-D instance-path [-H ] [-c comparepwd | -s scheme] password...

Description

The pwdhash command prints the encrypted form of a password using one of the encryption algorithms available to the server. If a user cannot log in, you can use this command to compare the user's password with the password stored in the directory.

Options

The following options are supported:

-c

Specifies the encrypted password with which the user password is to be compared. The result of this comparison is either OK or password does not match.

-D instance-path

Specifies where the Directory Server instance is located.

-H

Specifies that the passwords are hex-encoded.

password

The clear password from which the encrypted form should be generated (or against which the password in the directory should be compared).

-s

Generates the encrypted passwords according to the encryption scheme. The available schemes are SSHA, SHA, CRYPT, and CLEAR.

Examples

Example 1   Encrypting a Password
$ pwdhash -D /local/dsInst -s SSHA mypassword
{SSHA}mtHyZSHfhOZ4FHmvQe09FQjvLZpnW1wbmW05cw==
Example 2   Comparing Two Passwords
$ pwdhash -D /local/dsInst \
-c "{SSHA}mtHyZSHfhOZ4FHmvQe09FQjvLZpnW1wbmW05cw==" aPassword
pwdhash: password does not match

Exit Status

The following exit values are returned:

0

Successful completion.

1

An error occurred.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE

Availability

SUNWdsee7

Stability Level

Stable