I am using ApacheDS version 2.0.0-M3 (I not very familiar with how this works). I have created a new partition class, extending AbstractPartition. I am able to create an instance of this class, and add it to an ApacheDsService instance.
File instancePath = new File( param[0] );
ApacheDsService service = new ApacheDsService();
InstanceLayout layout = new InstanceLayout( instancePath );
try
{
service.start(layout);
//
TestPartition partition = new TestPartition ( layout );
partition.setSuffix( "ou=test" );
partition.setSchemaManager( service.getDirectoryService().getSchemaManager() );
partition.initialize();
service.getDirectoryService().addPartition( partition );
}
catch (Exception x)
{
LOG.error("Failed to start the service.", x);
System.exit(1);
}
However, when I connect to my server with Apache Directory Studio, I cannot see my partition.
I found this question: How to create a partition in the root in ApacheDS server programmatically using JNDI/LDAP? where kayyagari says that it is necessary to "configure the partition ... in the ou=config area".
I am unsure exactly what is meant by this, and have not had much luck searching the web for details.
I can see the ou=config partition in Apache Directory Studio. I can see other partitions there: ads-partitionId=system and ads-partitionId=example. Looking at the objectClass attributes, I can see that these both have one with the value ads-jdbmPartition. I am unsure whether my partition should have such an entry (as it is not a jdbm partition, but gets its data from a web service).
(Unfortunately, the documentation link for 2.0.0-M3 on the ApacheDS site gives a 404.) How should the LDIF entry for my custom partition look? I cannot get it right, and do not know if I am missing something, or if I have entered something incorrectly.
Any help would be appreciated.
Thanks.