I have a jndi realm set up in my tomcat 4.12 which is working and authenticates against microsoft's Active Directory Server. (not my choice, mandated)
Within that same context, I have a need to secure several programs to an administrator only and would rather not have to edit every one of them to programmatically check for the user who is trying to access them. In other words, some programs within the context will be available to everyone and some should only be available to the administrator.
Which I did try. Interestingly, tomcat will run, but nothing will authenticate.
ps. here is the bottom of my web.xml where I tried to enable the above: <security-constraint> <web-resource-collection> <web-resource-name>/mrcjava</web-resource-name> <url-pattern>*.jsp</url-pattern> <url-pattern>/LNGDIST/mrcmenu.html</url-pattern> <url-pattern>/GetAttsMaint</url-pattern> <url-pattern>/GetAttsRpt</url-pattern> <url-pattern>/GetAttsOptions</url-pattern> <url-pattern>/GetAttsOptionsNew</url-pattern> </web-resource-collection> <auth-constraint> <role-name>*</role-name> </auth-constraint> </security-constraint>