Score:0

In terms of replication, can an OpenLDAP consumer act as a provider to another OpenLDAP server?

id flag

If I have an OpenLDAP server configured as a replication provider and a second OpenLDAP server configured as a consumer, can I configure the second server to act as a provider for a third OpenLDAP server? If so, is there minimum OpenLDAP version for which this will work?

Score:1
fr flag

Yes, as long as the database has the 'syncprov' overlay loaded. This is actually how multi-master (multi-provider) replication works in OpenLDAP – all nodes in the cluster are simultaneously providers for every other node and consumers of every other node.

So if your version of OpenLDAP supports MMR (which 2.4.x certainly does), then it also supports the simpler case of chained replication in the same manner.

From the OpenLDAP admin guide:

provider/consumer roles are quite fluid: replication updates received in a consumer can be further propagated by that consumer to other servers, so a consumer can also act simultaneously as a provider

id flag
If the second server as a consumer is using an overlay such as 'rwm' or 'memberOf' does this make any difference to the data it can provide to to the third server?
user1686 avatar
fr flag
I really don't know how syncprov interacts with rwm; it probably depends on the order of the two overlays (i.e. my guess would be that it can be either stacked below syncprov, or above it). As for memberOf, its documentation says "using this in a replicated environment is explicitly discouraged" (OpenLDAP 2.6.x deprecates memberOf in favor of improved 'dynlist').
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.