Tomcat Version : 6.0.36 OS : Red Hat Enterprise Linux 7.3 Hello,
I have a question on how I am able to set the following, regarding the web application that runs under Apache Tomcat, 'Opengrok'. The idea is to set a hostname for 'localhost:8080/grok', so when users try and access the page via the hostname, they are prompted for authentication of their username and password. I have currently configured the server.xml to connect to LDAP. I have added below the configuration on my server.xml. I am unsure as to where to go from here, how I will be able to link the hostname. <!-- Adding the following for OpenGrok --> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" connectionURL="ldap://dubitdcvm01.openet-dublin:389" connectionName="jiraldap@openet-dublin" connectionPassword="jiraldap" referrals="follow" userBase="DC=openet-dublin" userSearch="(sAMAccountName={0})" userSubtree="true" roleBase="DC=openet-dublin" roleName="cn" roleSubtree="true" roleSearch="(member={0})" allRolesMode="strictAuthOnly" /> </Realm> I have checked the web for blogs and asked other tomcat groups but was not able to get any answers. I am aware that the version of Apache Tomcat I am using is outdated and has reached its end of life. Though necessary, I cannot update to a newer version of the application due to some issues. Kind Regards, Alfie