arps are read from a directory in servlet context now.
authordousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 24 Jun 2002 13:45:27 +0000 (13:45 +0000)
committerdousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 24 Jun 2002 13:45:27 +0000 (13:45 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@173 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AAServlet.java

index 58081ae..3b7913d 100755 (executable)
@@ -42,6 +42,13 @@ public class AAServlet extends HttpServlet {
                ctxFactory = "com.sun.jndi.ldap.LdapCtxFactory";
            arpFactoryMethod = getInitParameter("arpFactoryMethod");
            arpFactoryData = getInitParameter("arpFactoryData");
                ctxFactory = "com.sun.jndi.ldap.LdapCtxFactory";
            arpFactoryMethod = getInitParameter("arpFactoryMethod");
            arpFactoryData = getInitParameter("arpFactoryData");
+           if(arpFactoryMethod.equalsIgnoreCase("file") &&
+              arpFactoryData == null){
+               String realPath = getServletContext().getRealPath("/");
+               realPath += "arps";
+               log.debug("shib dir = "+ realPath);
+               arpFactoryData = realPath;
+           }