Right now I have my web application code residing in the tomcat. Basically,my web based code make ajax calls to the web service written in Java.It basically get deployed in the war file and then the project is run on tomcat.
Regarding Authentication:
We need to implement authentication for the users using LDAP and we have a requirement that it should happen in Apache web server and not in Tomcat where my code resides. So, I am wondering, what is the best process in this scenario, I mean, should I move my code to Apache and then have my code talk to Tomcat which is calling web service. In this way, I can pull the user related details from Apache in some way.
OR
Is it a good idea to have my code in Tomcat only where it is right now and then get the user related details after authentication reach tomcat from Apache?