Information
RHEL 9 must ensure the password complexity module is enabled in the system-auth file.
GROUP ID: V-258098
RULE ID: SV-258098r1045195
Enabling PAM password complexity permits enforcement of strong passwords and consequently makes the system less prone to dictionary attacks.
Solution
Configure RHEL 9 to use "pwquality" to enforce password complexity rules.
Add the following line to the "/etc/pam.d/system-auth" file(or modify the line to have the required value):
password required pam_pwquality.so