TCAT-AS-001020 - LockOutRealms must be used for management of Tomcat.


A LockOutRealm adds the ability to lock a user out after multiple failed logins. LockOutRealm is an implementation of the Tomcat Realm interface that extends the CombinedRealm to provide user lock out functionality if there are too many failed authentication attempts in a given period of time. A LockOutRealm is created by wrapping around a standard realm such as a JNDI Directory Realm which connects Tomcat to an LDAP Directory.

A Catalina container (Engine, Host, or Context) may contain no more than one Realm element (although this one Realm may itself contain multiple nested Realms). In addition, the Realm associated with an Engine or a Host is automatically inherited by lower-level containers unless the lower level container explicitly defines its own Realm. If no Realm is configured for the Engine, an instance of the Null Realm will be configured for the Engine automatically.


From the Tomcat server console as a privileged user edit the $CATALINA_BASE/conf/server.xml file.

sudo nano $CATALINA_BASE/conf/server.xml file

Locate or add the LockOutRealm element. Make sure the LockOutRealm element is applied to the management application at a minimum (if the management application is in use on the system). This is done by ensuring the LockOutRealm is nested under the Engine, Host or directly within the management application Context container.


<Realm className='org.apache.catalina.realm.LockOutRealm' failureCount='5' lockOutTime='600'>

See Also

Item Details


References: 800-53|AC-17(1), CAT|II, CCI|CCI-002314, Rule-ID|SV-222980r615938_rule, STIG-ID|TCAT-AS-001020, STIG-Legacy|SV-111483, STIG-Legacy|V-102543, Vuln-ID|V-222980

Plugin: Unix

Control ID: e1b8624a2aed4845b1de95761969bde68d385aa0dd331ea0e4b0831403a4ad89