mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
ITS#5268 don't replicate dSAOperation attributes unless specifically
requested. (It doesn't actually make sense to request them in that case, but allow it.)
This commit is contained in:
parent
562b88a3cf
commit
bcc108a7ff
@ -898,12 +898,16 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
|
||||
} else {
|
||||
/* specific attrs requested */
|
||||
if ( is_at_operational( desc->ad_type ) ) {
|
||||
if ( !SLAP_OPATTRS( rs->sr_attr_flags ) &&
|
||||
!ad_inlist( desc, rs->sr_attrs ) )
|
||||
{
|
||||
continue;
|
||||
/* if not explicitly requested */
|
||||
if ( !ad_inlist( desc, rs->sr_attrs )) {
|
||||
/* if not all op attrs requested, skip */
|
||||
if ( !SLAP_OPATTRS( rs->sr_attr_flags ))
|
||||
continue;
|
||||
/* if DSA-specific and replicating, skip */
|
||||
if ( op->o_sync != SLAP_CONTROL_NONE &&
|
||||
desc->ad_type->sat_usage == LDAP_SCHEMA_DSA_OPERATION )
|
||||
continue;
|
||||
}
|
||||
|
||||
} else {
|
||||
if ( !userattrs && !ad_inlist( desc, rs->sr_attrs ) ) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user