Skip to content

Commit 4166af0

Browse files
authored
Merge pull request ComplianceAsCode#2169 from redhatrises/add_profile_values_login_defs
Use profile variable settings for login.defs to clear up scan results confusion
2 parents 0be44cd + 08827df commit 4166af0

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

shared/xccdf/system/accounts/restrictions/password_expiration.xml

+14-11
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ age, and 7 day warning period with the following command:
8080
<title>Set Password Minimum Length in login.defs</title>
8181
<description>To specify password length requirements for new accounts,
8282
edit the file <tt>/etc/login.defs</tt> and add or correct the following
83-
lines:
84-
<pre>PASS_MIN_LEN 14<!-- <sub idref="var_accounts_password_minlen_login_defs"> --></pre>
83+
line:
84+
<pre>PASS_MIN_LEN <sub idref="var_accounts_password_minlen_login_defs"/></pre>
8585
<br/><br/>
8686
The DoD requirement is <tt>15</tt>.
8787
The FISMA requirement is <tt>12</tt>.
88+
The profile requirement is <tt><sub idref="var_accounts_password_minlen_login_defs"/></tt>.
8889
If a program consults <tt>/etc/login.defs</tt> and also another PAM module
8990
(such as <tt>pam_pwquality</tt>) during a password change operation,
9091
then the most restrictive must be satisfied. See PAM section
@@ -93,7 +94,7 @@ for more information about enforcing password quality requirements.
9394
<ocil clause="it is not set to the required value">
9495
To check the minimum password length, run the command:
9596
<pre>$ grep PASS_MIN_LEN /etc/login.defs</pre>
96-
The DoD requirement is <tt>15</tt>.
97+
The DoD requirement is <tt>15</tt>.
9798
</ocil>
9899
<rationale>
99100
Requiring a minimum password length makes password
@@ -111,10 +112,11 @@ behavior that may result.
111112
<title>Set Password Minimum Age</title>
112113
<description>To specify password minimum age for new accounts,
113114
edit the file <tt>/etc/login.defs</tt>
114-
and add or correct the following line, replacing <i>DAYS</i> appropriately:
115-
<pre>PASS_MIN_DAYS <i>DAYS</i></pre>
115+
and add or correct the following line:
116+
<pre>PASS_MIN_DAYS <sub idref="var_accounts_minimum_age_login_defs"/></pre>
116117
A value of 1 day is considered sufficient for many
117-
environments. The DoD requirement is 1.
118+
environments. The DoD requirement is 1.
119+
The profile requirement is <tt><sub idref="var_accounts_minimum_age_login_defs"/></tt>.
118120
</description>
119121
<ocil clause="it is not equal to or greater than the required value">
120122
To check the minimum password age, run the command:
@@ -139,10 +141,11 @@ after satisfying the password reuse requirement.
139141
<title>Set Password Maximum Age</title>
140142
<description>To specify password maximum age for new accounts,
141143
edit the file <tt>/etc/login.defs</tt>
142-
and add or correct the following line, replacing <i>DAYS</i> appropriately:
143-
<pre>PASS_MAX_DAYS <i>DAYS</i></pre>
144+
and add or correct the following line:
145+
<pre>PASS_MAX_DAYS <sub idref="var_accounts_maximum_age_login_defs"/></pre>
144146
A value of 180 days is sufficient for many environments.
145147
The DoD requirement is 60.
148+
The profile requirement is <tt><sub idref="var_accounts_maximum_age_login_defs"/></tt>.
146149
</description>
147150
<ocil clause="PASS_MAX_DAYS is not set equal to or greater than the required value">
148151
To check the maximum password age, run the command:
@@ -171,10 +174,10 @@ location subject to physical compromise.</rationale>
171174
<description>To specify how many days prior to password
172175
expiration that a warning will be issued to users,
173176
edit the file <tt>/etc/login.defs</tt> and add or correct
174-
the following line, replacing <i>DAYS</i> appropriately:
175-
<pre>PASS_WARN_AGE <i>DAYS</i></pre>
177+
the following line:
178+
<pre>PASS_WARN_AGE <sub idref="var_accounts_password_warn_age_login_defs" /></pre>
176179
The DoD requirement is 7.
177-
<!-- <sub idref="accounts_password_warn_age_login_defs_login_defs_value" /> -->
180+
The profile requirement is <tt><sub idref="var_accounts_password_warn_age_login_defs"/></tt>.
178181
</description>
179182
<ocil clause="it is not set to the required value">
180183
To check the password warning age, run the command:

0 commit comments

Comments
 (0)