[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Replication of local entries with translucent overlay
- To: openldap-technical@openldap.org
- Subject: Replication of local entries with translucent overlay
- From: Igor <nightonearth@gmail.com>
- Date: Fri, 4 Mar 2016 12:54:15 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=e6iCycP3XW+L7ujWhALfJyJ9M87N2RRuxniIEnZDD7U=; b=ZjZxLZypouvLQ6qYKP/T0IzpjT5gIk/XWe6Eye5RoQ+S+eK3cdvnTxecRu9Yv29TeS diTH4yapsC2EKxeqYPG4Kw6r8147RGC8EFcI7yaA5Mdj4ahJtE5fFQ9FA49T0hTvDych 8uJma9TlfEyIXAUylsYiF6aU7V/vyAe0jyIXd2AVLmpPhmvwDmD+YzFtM0EE4f3nkOei UNQKMjBibHdCp6ssXLl+wr/QlaIgY7P3bQlhiP6QzJ+vMuLhP1MjCN0u263lOjt22xeX LaTuzV28++Ytc33775c/Ds7TZGa7V5QCn+s5DUpreJ0j0XKN/NShqd3iYRzn/G9cjMU+ Z+bg==
Hello,
I have an openLDAP proxy server which uses the translucent overlay to
supplement Active Directory records with additional attributes. I
wanted to set up replication for my translucent entries (specifically,
push-based provider/consumer scheme, refreshAndPersist mode).
Since slapo-translucent turns off maintenance of the entryCSN and
entryUUID attributes (turns off the lastmod option in the
translucent_db_init function), it cannot be used with slapo-syncprov
(which requires entryCSN and entryUUID attributes).
I understand that to make these two overlays work together in all
scenarios may not be trivial. However, for my specific scenario, it
seems to be enough to just comment out that line which turns off
lastmod:
==============
---
servers/slapd/overlays/translucent.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/servers/slapd/overlays/translucent.c
b/servers/slapd/overlays/translucent.c
index 48cca49..45b45a0 100644
--- a/servers/slapd/overlays/translucent.c
+++ b/servers/slapd/overlays/translucent.c
@@ -1282,7 +1282,7 @@ static int translucent_db_init(BackendDB *be,
ConfigReply *cr) {
return 1;
}
SLAP_DBFLAGS(be) |= SLAP_DBFLAG_NO_SCHEMA_CHECK;
- SLAP_DBFLAGS(be) |= SLAP_DBFLAG_NOLASTMOD;
+// SLAP_DBFLAGS(be) |= SLAP_DBFLAG_NOLASTMOD;
return 0;
}
--
1.7.1
==============
Everything replicates correctly after that.
I don't expect anyone to scour the openLDAP code to come up with an
exhaustive list of potential bugs that may arise because of this. I
assume the risks that come with such a solution.
Having said that, can anyone think of any issues with commenting that
line in translucent_db_init, and setting entryCSN, entryUUID,
contextCSN attributes to be searched in local glue records only (via
olcTranslucentLocal)?
Thanks,
-Igor