Solution to "Invalid ciphertext password." error in hcl

1. Problem description

When using the "password hash 123" command to set a password for a user, the following error occurred:
Insert picture description here

2. The cause of the error

  1. Sentence translation: Invalid ciphertext password
  2. Finding the reason: It prompts "the password in cipher text is invalid", that is to say, the format of the entered password is not correct. After querying the information, I found the explanation of the command, as follows:

The original command is: password {hash | simple} password
hash: means setting the user password in a hash mode
simple: means setting the user password in plain text

  1. Summary of the problem: The parameter following hash should be the hash value of the password. If the password 123 that I set at the beginning is not in accordance with the format, an error is reported.

3. Solution

  1. Use the "password hash" command

Insert picture description here

  1. You can also set a password for the user by using the "password simple plaintext password" command, as shown in the figure:

Insert picture description here

4. Supplement

The authentication password set in plain text or hashed password is saved in the configuration file in cipher text
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_44933518/article/details/109382120