#!/bin/bash
# packages = authselect
# platform = multi_platform_rhel
# variables = var_password_pam_retry=3

source common.sh

echo "retry = 3" >  {{{ pwquality_path }}}

for file in ${configuration_files[@]}; do
	{{{ bash_ensure_pam_module_option('/etc/authselect/custom/testingProfile/$file',
                                   'password',
								   'required',
								   'pam_pwquality.so',
								   'retry',
								   '4',
								   '^\s*account') }}}
done

authselect apply-changes
