mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 04:29:35 -05:00
make frontend-generated attrs available to backend's hook
This commit is contained in:
parent
4c61b9a8f7
commit
d503b5a5b7
2 changed files with 2 additions and 11 deletions
|
|
@ -1809,18 +1809,7 @@ int backend_operational(
|
|||
if (( SLAP_OPATTRS( rs->sr_attr_flags ) || rs->sr_attrs ) &&
|
||||
op->o_bd && op->o_bd->be_operational != NULL )
|
||||
{
|
||||
Attribute *a;
|
||||
|
||||
a = rs->sr_operational_attrs;
|
||||
rs->sr_operational_attrs = NULL;
|
||||
rc = op->o_bd->be_operational( op, rs );
|
||||
*ap = rs->sr_operational_attrs;
|
||||
if ( a != NULL ) {
|
||||
rs->sr_operational_attrs = a;
|
||||
}
|
||||
|
||||
for ( ; *ap; ap = &(*ap)->a_next )
|
||||
/* just count them */ ;
|
||||
}
|
||||
op->o_bd = be_orig;
|
||||
|
||||
|
|
|
|||
|
|
@ -1033,9 +1033,11 @@ rwm_send_entry( Operation *op, SlapReply *rs )
|
|||
* to return, and remap them accordingly */
|
||||
(void)rwm_attrs( op, rs, &e->e_attrs, 1 );
|
||||
|
||||
#if 0
|
||||
if ( rs->sr_operational_attrs ) {
|
||||
(void)rwm_attrs( op, rs, &rs->sr_operational_attrs, 0 );
|
||||
}
|
||||
#endif
|
||||
|
||||
rs->sr_entry = e;
|
||||
rs->sr_flags = flags;
|
||||
|
|
|
|||
Loading…
Reference in a new issue