mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Basic donUseCopy implementation
This commit is contained in:
parent
a1eb25c595
commit
49708e1bd5
1 changed files with 7 additions and 1 deletions
|
|
@ -243,7 +243,13 @@ fe_op_compare( Operation *op, SlapReply *rs )
|
|||
ava.aa_desc->ad_cname.bv_val, 0, 0 );
|
||||
|
||||
op->orc_ava = &ava;
|
||||
if ( ava.aa_desc == slap_schema.si_ad_entryDN ) {
|
||||
|
||||
if ( SLAP_SHADOW(op->o_bd) && get_dontUseCopy(op) ) {
|
||||
/* don't use shadow copy */
|
||||
send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
|
||||
"copy not used" );
|
||||
|
||||
} else if ( ava.aa_desc == slap_schema.si_ad_entryDN ) {
|
||||
send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
|
||||
"entryDN compare not supported" );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue