directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r406170 - /directory/trunks/apacheds/osgi/loader/src/main/java/org/apache/ldap/server/loader/LoadCommand.java
Date Sun, 14 May 2006 00:03:02 GMT
Author: erodriguez
Date: Sat May 13 17:03:01 2006
New Revision: 406170

URL: http://svn.apache.org/viewcvs?rev=406170&view=rev
Log:
Updated the load command to use the Kerberos-aware LDIF filter.

Modified:
    directory/trunks/apacheds/osgi/loader/src/main/java/org/apache/ldap/server/loader/LoadCommand.java

Modified: directory/trunks/apacheds/osgi/loader/src/main/java/org/apache/ldap/server/loader/LoadCommand.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/osgi/loader/src/main/java/org/apache/ldap/server/loader/LoadCommand.java?rev=406170&r1=406169&r2=406170&view=diff
==============================================================================
--- directory/trunks/apacheds/osgi/loader/src/main/java/org/apache/ldap/server/loader/LoadCommand.java
(original)
+++ directory/trunks/apacheds/osgi/loader/src/main/java/org/apache/ldap/server/loader/LoadCommand.java
Sat May 13 17:03:01 2006
@@ -17,8 +17,11 @@
 
 package org.apache.ldap.server.loader;
 
+import java.io.File;
 import java.io.PrintStream;
+import java.util.ArrayList;
 import java.util.Hashtable;
+import java.util.List;
 
 import javax.naming.Context;
 import javax.naming.NamingException;
@@ -26,6 +29,7 @@
 import javax.naming.spi.InitialContextFactory;
 
 import org.apache.directory.server.core.jndi.CoreContextFactory;
+import org.apache.directory.server.protocol.shared.store.Krb5KdcEntryFilter;
 import org.apache.directory.server.protocol.shared.store.LdifFileLoader;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -92,7 +96,10 @@
             return;
         }
 
-        loader = new LdifFileLoader( ctx, pathToLdif );
+        List filters = new ArrayList();
+        filters.add(  new Krb5KdcEntryFilter() );
+
+        loader = new LdifFileLoader( ctx, new File( pathToLdif ), filters );
         loader.execute();
     }
 



Mime
View raw message