From 1fac13d239726dcb26ca54993c9b5e5ee38176d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Thu, 3 Mar 2022 10:56:13 +0000 Subject: [PATCH] ITS#9343 Let backend_attribute read operational attributes back-mdb checks requested attribute is present in the entry which can obstruct the fallback to backend_operational. --- servers/slapd/backend.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 42f9039ba3..24a82f399e 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -1732,7 +1732,9 @@ fe_acl_attribute( } else { op->o_private = NULL; - rc = be_entry_get_rw( op, edn, NULL, entry_at, 0, &e ); + rc = be_entry_get_rw( op, edn, NULL, + is_at_operational( entry_at->ad_type ) ? NULL : entry_at, + 0, &e ); e_priv = op->o_private; op->o_private = o_priv; } @@ -1893,7 +1895,9 @@ backend_access( } else { op->o_private = NULL; - rc = be_entry_get_rw( op, edn, NULL, entry_at, 0, &e ); + rc = be_entry_get_rw( op, edn, NULL, + is_at_operational( entry_at->ad_type ) ? NULL : entry_at, + 0, &e ); e_priv = op->o_private; op->o_private = o_priv; } -- 2.47.3