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.
This commit is contained in:
Ondřej Kuzník 2022-03-03 10:56:13 +00:00 committed by Quanah Gibson-Mount
parent 7c5159a904
commit 1fac13d239

View file

@ -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;
}