diff --git a/daemons/ipa-slapi-plugins/ipa-modrdn/ipa_modrdn.c b/daemons/ipa-slapi-plugins/ipa-modrdn/ipa_modrdn.c index 8be192a5e..de980ec36 100644 --- a/daemons/ipa-slapi-plugins/ipa-modrdn/ipa_modrdn.c +++ b/daemons/ipa-slapi-plugins/ipa-modrdn/ipa_modrdn.c @@ -709,6 +709,7 @@ static int ipamodrdn_post_op(Slapi_PBlock *pb) Slapi_Attr *sattr = NULL; Slapi_Attr *tattr = NULL; int ret = LDAP_SUCCESS; + int is_repl_op; LOG_TRACE("--in-->\n"); @@ -717,6 +718,17 @@ static int ipamodrdn_post_op(Slapi_PBlock *pb) goto done; } + if (slapi_pblock_get(pb, SLAPI_IS_REPLICATED_OPERATION, &is_repl_op) != 0) { + LOG_FATAL("unable to retrieve replication operation status\n"); + ret = LDAP_OPERATIONS_ERROR; + goto done; + } + + /* pass through if this is a replicated operation */ + if (is_repl_op) { + goto done; + } + slapi_pblock_get(pb, SLAPI_ENTRY_POST_OP, &e); if (NULL == e) { goto done;