Search in sources :

Example 1 with PartitionFactory

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);
}
Also used : Partition(org.apache.directory.server.core.api.partition.Partition) PartitionFactory(org.apache.directory.server.core.factory.PartitionFactory)

Aggregations

Partition (org.apache.directory.server.core.api.partition.Partition)1 PartitionFactory (org.apache.directory.server.core.factory.PartitionFactory)1