Replication : missing entry not replicated

Hello,

If I modify the value of an attribut, the change is applied on the other LDAP server so the replication is working fine.

For a reason that I do not known an entry is missing on one of my LDAP server.

How can I recreate this missing entry ?

The replication seems to not work is this case.

Or have I to do a initialisation from the LDAP where the entry is present ?

[407 byte] By [Marc@Flowera] at [2007-11-26 17:32:12]
# 1
If you do not care about the audit information on the entry deleting from the master and re-adding should work
LostLada at 2007-7-9 0:00:12 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Re-initialization (online or offline) will make sure that all entries are identical on both servers and will be kept in sync in the future.

Is the entry really missing or is it just that you do not see it when performing a search ?

One way to check is to export the data (with replication meta-data, and from the server which appears to have the entry missing) to LDIF. And look into the LDIF file if the entry is present or not, if it is a normal entry or a deleted entry.

If the entry is present and normal, it could be an index issue and rebuilding the index should be enough.

If the entry is present but as a deleted entry, this would require more investigation.

If the entry is not present at all, then reinitialization is the only proper way to solve this issue.

regards,

Ludovic

ludovicpa at 2007-7-9 0:00:12 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3
Hi, how would one know from the LDIF file about the deleted entry?would it be seen as an Deleted entry in the Audit log?can you let me know about this.thanks for your efforts...Regards,sunonega
sunonegaa at 2007-7-9 0:00:12 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4

When replication is enabled, entries are not deleted immediately from the database, but marked as deleted. This is done internally by the server which adds the objectclass nsTombstone (among other things). The server will never return an entry with objectclass nsTombstone on a search request.

Regards

Ludovic.

ludovicpa at 2007-7-9 0:00:12 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5

Hi all,

I found the problem.

The entry DN was : uid=userx,ou=persons,ou=internal,dc=company,dc=com

userx had did some "manual" change into ldap under his account.

He added some entries (to test Role) :

objectClass: nsRoleDefinition

objectClass: nsSimpleRoleDefinition

objectClass: nsManagedRoleDefinition

objectClass: ldapSubEntry

I do not known wy after this cange, his entry on one server was deleted.

But anyway, to correct the problem I do :

1) export his entry into a LDIF file

2) delete his entry

3) modify the above LDIF file (remove entries concerning Role)

4) import the new LDIF file

And now it's OK

Regards

Marc@Flowera at 2007-7-9 0:00:12 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6

Well, ldapsubentry is a "magic" objectclass which makes the entry an operational entry not to be returned with regular entries.

As a result it appears a deleted in regular searches although it's still present on the server.

I do not understand why you would only see this on one server and not all of them though.

regards,

Ludovic

ludovicpa at 2007-7-9 0:00:12 > top of Java-index,Web & Directory Servers,Directory Servers...