| Oracle® Fusion Middleware Man Page Reference for Oracle Directory Server Enterprise Edition 11g Release 1 (11.1.1.7.0) Part Number E28967-01 |
|
|
PDF · Mobi · ePub |
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:
-cSpecifies 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-pathSpecifies where the Directory Server instance is located.
-HSpecifies that the passwords are hex-encoded.
The clear password from which the encrypted form should be generated (or against which the password in the directory should be compared).
-sGenerates the encrypted passwords according to the encryption scheme. The available schemes are SSHA, SHA, CRYPT, and CLEAR.
Examples
$ pwdhash -D /local/dsInst -s SSHA mypassword
{SSHA}mtHyZSHfhOZ4FHmvQe09FQjvLZpnW1wbmW05cw==
$ pwdhash -D /local/dsInst \
-c "{SSHA}mtHyZSHfhOZ4FHmvQe09FQjvLZpnW1wbmW05cw==" aPassword
pwdhash: password does not match
Exit Status
The following exit values are returned:
Successful completion.
An error occurred.
Attributes
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|---|---|
|
Availability |
SUNWdsee7 |
|
Stability Level |
Stable |