use of org.apache.directory.server.core.factory.PartitionFactory in project undertow by undertow-io.
the class KerberosKDCUtil method createPartition.
private static void createPartition(final DirectoryServiceFactory dsf, final SchemaManager schemaManager, final String id, final String suffix) throws Exception {
PartitionFactory pf = dsf.getPartitionFactory();
Partition p = pf.createPartition(schemaManager, id, suffix, 1000, workingDir.toFile());
pf.addIndex(p, "krb5PrincipalName", 10);
p.initialize();
directoryService.addPartition(p);
}
Aggregations