<def-group>
  <definition class="compliance" id="module_useradmin_accounts_min_length" version="1">
    <metadata>
      <title>Passwords include the required minimum character length.</title>
      <affected family="unix">
        <product>Webmin</product>
      </affected>
      <description>Passwords created through the UserAdmin Webmin module 
	  must include the minimum defined number of characters in the password.</description>
    </metadata>
    <!-- passwd_min is configured in /etc/webmin/useradmin/config ... -->
    <criteria operator="AND">
      <criterion comment="Installed operating system is part of the unix family"
      test_ref="test_unix_family" />
	  <criterion comment="Passwords include the required minimum character length."
	  test_ref="test_webmin_module_useradmin_accounts_min_length" />
   </criteria>
  </definition>
  
  <ind:textfilecontent54_test check="all" comment="Check passwd_min is configured in /etc/webmin/useradmin/config" 
  id="test_webmin_module_useradmin_accounts_min_length" version="1">
    <ind:object object_ref="object_webmin_module_useradmin_accounts_min_length" />
    <ind:state state_ref="state_webmin_module_useradmin_accounts_min_length" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object 
  id="object_webmin_module_useradmin_accounts_min_length" version="1">
    <ind:filepath>/etc/webmin/useradmin/config</ind:filepath>
    <ind:pattern operation="pattern match">^passwd_min=+(\d+)$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
  <ind:textfilecontent54_state id="state_webmin_module_useradmin_accounts_min_length" version="1">
    <ind:subexpression operation="greater than or equal" var_ref="var_webmin_module_useradmin_accounts_min_length" datatype="int" />
  </ind:textfilecontent54_state>

  <external_variable comment="minimum password length" datatype="int" id="var_webmin_module_useradmin_accounts_min_length" version="1" />
  
</def-group>
