Le 03/02/2017 à 14:58, Louis-Gabriel Thibault a écrit : > Hello Brian, > > On Thu, Feb 2, 2017 at 9:16 PM, Brian Burch <[email protected]> wrote: > >> Just to be clear, did you mean you did not find a way to create a >> partition /after/ config.ldif has been "migrated"? > > I must admit I did not look very hard once I got config.ldif working, but > no I have no alternate way at the moment. You can create a partition. Either you do it using Studio, in an interactive mode, or you duplicate the example partition's ldif part, renaming 'example' to whatever fits your need (see more comments at the end of this mail). :
dn: ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config objectclass: top objectClass: ads-base objectclass: ads-partition objectclass: ads-jdbmPartition ads-partitionSuffix: dc=example,dc=com ads-contextentry:: ZG46IGRjPWV4YW1wbGUsZGM9Y29tCmRjOiBleGFtcGxlCm9iamVjdGNsY XNzOiBkb21haW4Kb2JqZWN0Y2xhc3M6IHRvcAoK ads-jdbmpartitionoptimizerenabled: TRUE ads-partitioncachesize: 10000 ads-partitionsynconwrite: TRUE ads-partitionid: example ads-enabled: TRUE dn: ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ou: indexes objectclass: organizationalUnit objectclass: top dn: ads-indexAttributeId=apacheRdn,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: apacheRdn ads-indexHasReverse: TRUE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=apachePresence,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: apachePresence ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=apacheOneAlias,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: apacheOneAlias ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=apacheSubAlias,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: apacheSubAlias ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=apacheAlias,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: apacheAlias ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=dc,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: dc ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=krb5PrincipalName,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: krb5PrincipalName ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=objectClass,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: objectClass ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=entryCSN,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: entryCSN ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=ou,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: ou ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=uid,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: uid ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE dn: ads-indexAttributeId=administrativeRole,ou=indexes,ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config ads-indexattributeid: administrativeRole ads-indexHasReverse: FALSE ads-indexcachesize: 100 objectclass: ads-index objectclass: ads-jdbmIndex objectclass: ads-base objectclass: top ads-enabled: TRUE Once done, you have to change the contextEntry part in dn: ads-partitionId=example,ou=partitions,ads-directoryServiceId=default,ou=config. Beware that it's a base64 encoded entry : ads-contextentry:: ZG46IGRjPWV4YW1wbGUsZGM9Y29tCmRjOiBleGFtcGxlCm9iamVjdGNsY XNzOiBkb21haW4Kb2JqZWN0Y2xhc3M6IHRvcAoK is equivalent to dn: dc=example,dc=com dc: example objectclass: domain objectclass: top so you also have to change 'example' here, encoded it to base64 and store teh result in the entry. You can add also any index you want. Last, not least, do not forget to restart the server. Ok, now, if you don't want to use Studio, then that is a PITA, and I think it would be a great service for users to provide a script that does that on teh command line... It should not be complex to add. -- Emmanuel Lecharny Symas.com directory.apache.org
