SV-222962r615938_rule
V-222962
SRG-APP-000148-AS-000101
TCAT-AS-000600
CAT II
10
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})"
/>
If manager and host-manager applications have been deleted from the system, this is not a finding.
From the Tomcat server as a privileged user, run the following commands:
sudo grep -i -A8 JNDIRealm $CATALINA_BASE/conf/server.xml
If the JNDIRealm does not exist or if the JNDIRealm configuration is commented out, this is finding.
V-222962
False
TCAT-AS-000600
If manager and host-manager applications have been deleted from the system, this is not a finding.
From the Tomcat server as a privileged user, run the following commands:
sudo grep -i -A8 JNDIRealm $CATALINA_BASE/conf/server.xml
If the JNDIRealm does not exist or if the JNDIRealm configuration is commented out, this is finding.
M
4094