Skip to content

Commit

Permalink
Add test to accounts_password for OL
Browse files Browse the repository at this point in the history
This validates the scenario when the pam_pwquality option is set in
system-auth

Signed-off-by: Edgar Aguilar <edgar.aguilar@oracle.com>
  • Loading branch information
Xeicker committed Jan 3, 2023
1 parent 2851631 commit d49dea3
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# This test only applies to platforms that check system-auth to not override
# the value in pwquality.conf
# platform = multi_platform_ol
# variables = var_password_pam_{{{ VARIABLE }}}={{{ TEST_VAR_VALUE }}}

truncate -s 0 /etc/security/pwquality.conf

echo "{{{ VARIABLE }}} = {{{ TEST_CORRECT_VALUE }}}" >> /etc/security/pwquality.conf

{{{
bash_ensure_pam_module_configuration('/etc/pam.d/system-auth',
'password',
'required',
'pam_pwquality.so',
VARIABLE,
TEST_CORRECT_VALUE)
}}}

0 comments on commit d49dea3

Please sign in to comment.