I have this little big problem:
Tomcat is running on windows server 2008. There is a local directory: D:\archive. This directory holds about 40000 pdf files.
The application is a search utility with the goal to provide any pdf in this directory as a download. Tomcat is bound to active directory (JNDIRealm). The directory is mapped in server.xml using:
<Context docBase="D:\archive" path="/archive"></Context>
The application itself is deployed as /PDFDownload, which is protected with BASIC authentication.
how can I protect /archive using the same ldap bind ? I have already googled a lot and all I can find are examples on application context security or using apache in front of tomcat (if that is an option, how would I bind apache to active directory ?)