Added parameters for principal and credentials. This allows the AA to do a non-anony...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Oct 2002 16:18:48 +0000 (16:18 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Oct 2002 16:18:48 +0000 (16:18 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@320 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index c290f86..6dd1fcb 100755 (executable)
@@ -122,8 +122,13 @@ public class AAServlet extends HttpServlet {
 
            Hashtable env = new Hashtable(11);
            env.put(Context.INITIAL_CONTEXT_FACTORY, ctxFactory);
-
            env.put(Context.PROVIDER_URL, dirUrl);
+           
+           if (getInitParameter("ctxPrincipal") != null && getInitParameter("ctxCredentials")  != null) {
+               env.put(Context.SECURITY_PRINCIPAL, getInitParameter("ctxPrincipal"));
+               env.put(Context.SECURITY_CREDENTIALS, getInitParameter("ctxCredentials"));
+           }
+           
            DirContext ctx = new InitialDirContext(env);
            
            responder = new AAResponder(arpFactory, ctx, myName);