TCAT-AS-000600 - Tomcat management applications must use LDAP realm authentication.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Using the local user store on a Tomcat installation does not meet a multitude of security control requirements related to user account management. To address this risk, Tomcat must be configured to utilize an LDAP or Active Directory installation that provides a centralized user account store that is configured to meet standard DoD user account management requirements. JNDIRealm is an implementation of the Tomcat Realm interface that looks up users in an LDAP directory server accessed by a JNDI provider (typically, the standard LDAP provider that is available with the JNDI API classes). The realm supports a variety of approaches to using a directory for authentication.

Solution

Identify the server IP that is providing LDAP services and configure the Tomcat user roles schema within LDAP. Refer to the manager and host-manager web.xml files for application specific role information that can be used for setting up the roles for those applications. The default location for these files is: $CATALINA_BASE/webapps/<AppName>/WEB-INF/web.xml

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

Locate the <Realm> element in the server.xml file, add a nested <Realm> element using the JNDIRealm className and configure the associated LDAP settings as per the LDAP server connection requirements.

EXAMPLE:
This is for illustration purposes only. Modify the LDAP settings on a case-by-case basis as per the individual LDAP server and schema.

<Realm className='org.apache.catalina.realm.JNDIRealm'
connectionURL='ldaps://localhost:686'
userPattern='uid={0},ou=people,dc=myunit,dc=mil'
roleBase='ou=groups,dc=myunit,dc=mil'
roleName='cn'
roleSearch='(uniqueMember={0})'
/>

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Tomcat_Application_Server_9_V2R7_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000764, Rule-ID|SV-222962r879589_rule, STIG-ID|TCAT-AS-000600, STIG-Legacy|SV-111449, STIG-Legacy|V-102507, Vuln-ID|V-222962

Plugin: Unix

Control ID: fad33eca10e334175bdf0daba31053e3cb84829a199316fa579a27d85b98c681