Now we get the ARP directory from environment.
authordousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 25 Jun 2002 21:01:58 +0000 (21:01 +0000)
committerdousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 25 Jun 2002 21:01:58 +0000 (21:01 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@195 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/arpUtil/ArpUtil.java

index e32b127..776c57d 100755 (executable)
 
 package edu.internet2.middleware.shibboleth.aa.arpUtil;
 
+/**
+ *  Attribute Authority & Release Policy
+ *  A utility for managing ARPs
+ *
+ * @author     Parviz Dousti (dousti@cmu.edu)
+ * @created    June, 2002
+ */
+
 import edu.internet2.middleware.shibboleth.aa.*;
 import java.io.*;
 import java.util.*;
 import java.security.*;
 import javax.naming.*;
 import javax.naming.directory.*;
-//import javax.security.auth.kerberos.*;
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
 
 class ArpUtil{
+
+    private static Logger log = Logger.getLogger(ArpUtil.class.getName());
     static Principal user;
     static ArpFactory arpFactory;
     static String listUsage = "\tArpUtil list <arp name> [-acls] [-dir <ldap url> <user id>] [-sql <sql url> <user id>]";
@@ -68,8 +79,10 @@ class ArpUtil{
 
     public static void main(String [] args)throws AAException{
 
-       arpFactory = ArpRepository.getInstance("file", "/tmp/shib2/");
+       arpFactory = ArpRepository.getInstance("file",  System.getProperty("arp.dir"));
 
+       PropertyConfigurator.configure(System.getProperty("log.config"));
+       
        //user = new KerberosPrincipal(System.getProperty("user.name"));
        user = new AA_Identity(System.getProperty("user.name"));