Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom partition in ApacheDS
    primarykey
    data
    text
    <p>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.</p> <pre><code> 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); } </code></pre> <p>However, when I connect to my server with Apache Directory Studio, I cannot see my partition. </p> <p>I found this question: <a href="https://stackoverflow.com/questions/4935612/how-to-create-a-partition-in-the-root-in-apacheds-server-programmatically-using/4946360#4946360">How to create a partition in the root in ApacheDS server programmatically using JNDI/LDAP?</a> where kayyagari says that it is necessary to "configure the partition ... in the ou=config area". </p> <p>I am unsure exactly what is meant by this, and have not had much luck searching the web for details. </p> <p>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).</p> <p>(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. </p> <p>Any help would be appreciated.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload