I'm having a weird issue with my OpenLDAP directory, maybe some of you had a similar issue in the past and can point me in the right direction, at the moment I have no idea where to start looking...
In my directory, the entities are listed in the ou=organisation branch, where the key is the entity label and they have a hierarchic structure, for example:
- ou=organisation - ou=entity1,ou=organisation - ou=entity2,ou=entity1,ou=organisation - ou=entity3,ou=entity1,ou=organisation - ou=entity4,=entity3,ou=entity1,ou=organisation - ou=entity5,ou=organisation - ...
The issue appears when there is a label change in one of the entities. In this example I will change entity3 by entity33:
- ou=organisation - ou=entity1,ou=organisation - ou=entity2,ou=entity1,ou=organisation - ou=entity33,ou=entity1,ou=organisation - ou=entity4,=entity33,ou=entity1,ou=organisation - ou=entity5,ou=organisation - ...
When I'm using a directory browser, let's say ApacheDS, I have no trouble, I can see the entire directory tree (as above).
My issue is the following:
- If I do a LDIF export (using the same ApacheDS), it doesn't export the entity4 entry (or any other entity under entity33) - If I do a Java application that uses a LDAP framework (Spring or UnboundID in my case), I have the same problem, it doesn't see the entity4 entry - I can do an entity4 LDIF export, it works well
Meanwhile there is a solution to this issue. If I do the series of operations:
- LDIF export of entity4 - LDIF export of entity33 - LDIF export of entity1
- suppression of entity33 (witch includes all entries under it)
- Import of entity1 - Import of entity33 - Import of entity4
Once these operations completed, everything goes normal and entity4 will be exported when I do an entity33 LDIF export.
One last detail, when I enter the enterprise, the issue was known, and it was told me to export the parent entity of the one that had the label change, that’s why I do the enetity1 export/suppression/import (not only the entity33).
Do you have any idea of what's going on? At the moment I have no idea where to start looking at, if I can change some settings or if it's an OpenLDAP know bug.
I would like to thank you in advance for any help,
Best regards, Marc
--On Friday, April 22, 2016 4:57 PM +0200 mdii mdii.alias@gmail.com wrote:
I'm having a weird issue with my OpenLDAP directory, maybe some of you had a similar issue in the past and can point me in the right direction, at the moment I have no idea where to start looking...
OpenLDAP version? OpenLDAP backend? What results do you get from slapcat?
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration A division of Synacor, Inc
openldap-technical@openldap.org