user_password_hash

Ensure a user's password. Password must respect $id$salt$hashed format as used in the UNIX /etc/shadow file.

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
loginUser login.

This parameter is required.
passwordUser hashed password.

This parameter is required.

Outcome conditions

You need to replace ${login} with its actual canonified value.

  • ✅ Ok: user_password_hash_${login}_ok
    • ☑️ Already compliant: user_password_hash_${login}_kept
    • 🟨 Repaired: user_password_hash_${login}_repaired
  • ❌ Error: user_password_hash_${login}_error

Example

method: user_password_hash
params:
  password: VALUE
  login: VALUE

Documentation

User must exists, password must be pre-hashed. Does not handle empty password accounts. See UNIX /etc/shadow format. entry example: $1$jp5rCMS4$mhvf4utonDubW5M00z0Ow0

An empty password will lead to an error and be notified.