
   


<def-group>
  <definition class="compliance" id="cracklib_accounts_password_pam_lcredit" version="3">
    <metadata>
        <title>Set Password Strength Minimum Lowercase Characters</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Configure PAM module</description>
    </metadata>
    <criteria operator="AND" comment="Make sure arguments are properly configured">


      <criterion test_ref="test_pam_password_pam_cracklib_lcredit" comment="Verify lcredit is set to the desired state" />


    </criteria>
  </definition>



  <ind:textfilecontent54_test id="test_pam_password_pam_cracklib_lcredit"
  check="all"
  comment="Verify lcredit configuation of pam_cracklib.so" version="1">
    <ind:object object_ref="object_pam_password_pam_cracklib_lcredit" />
    <ind:state state_ref="state_pam_password_pam_cracklib_lcredit" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="object_pam_password_pam_cracklib_lcredit" comment="Check lcredit configuration of PAM pam_cracklib.so module" version="1">
    <ind:filepath>/etc/pam.d/common-password</ind:filepath>
    <ind:pattern operation="pattern match">^\s*password\s+requisite\s+pam_cracklib.so.*\slcredit=(-?\d+)(?:\s+.*)?</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>

  <ind:textfilecontent54_state id="state_pam_password_pam_cracklib_lcredit" version="3">
    <ind:subexpression datatype="int" operation="less than or equal" var_ref="var_password_pam_lcredit" />
  </ind:textfilecontent54_state>

  <external_variable comment="PAM external variable var_password_pam_lcredit" datatype="int" id="var_password_pam_lcredit" version="1" />


</def-group>