From: Ondřej Kuzník Date: Thu, 3 Mar 2022 10:56:13 +0000 (+0000) Subject: ITS#9343 Let backend_attribute read operational attributes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fac13d239726dcb26ca54993c9b5e5ee38176d5;p=thirdparty%2Fopenldap.git 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. --- 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; }