22b3c5
From 1f227fdc2b00f344c9e6897c66d5a8f4d404cdda Mon Sep 17 00:00:00 2001
22b3c5
From: progier389 <progier@redhat.com>
22b3c5
Date: Wed, 26 May 2021 16:07:43 +0200
22b3c5
Subject: [PATCH] Issue 4764 - replicated operation sometime checks ACI (#4783)
22b3c5
22b3c5
---
22b3c5
 ldap/servers/slapd/connection.c | 8 ++++++++
22b3c5
 1 file changed, 8 insertions(+)
22b3c5
22b3c5
diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c
22b3c5
index b9b280e6d..d6377cb78 100644
22b3c5
--- a/ldap/servers/slapd/connection.c
22b3c5
+++ b/ldap/servers/slapd/connection.c
22b3c5
@@ -1787,6 +1787,14 @@ connection_threadmain()
22b3c5
             }
22b3c5
         }
22b3c5
 
22b3c5
+        /*
22b3c5
+         * Fix bz 1931820 issue (the check to set OP_FLAG_REPLICATED may be done
22b3c5
+         * before replication session is properly set).
22b3c5
+         */
22b3c5
+        if (replication_connection) {
22b3c5
+            operation_set_flag(op, OP_FLAG_REPLICATED);
22b3c5
+        }
22b3c5
+
22b3c5
         /*
22b3c5
          * Call the do_<operation> function to process this request.
22b3c5
          */
22b3c5
-- 
22b3c5
2.31.1
22b3c5