Diff for /servers/slapd/overlays/syncprov.c between versions 1.307 and 1.307.2.1

version 1.307, 2009/11/23 21:17:25 version 1.307.2.1, 2009/12/11 09:49:00
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.306 2009/11/23 21:13:42 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.307 2009/11/23 21:17:25 hyc Exp $ */
 /* syncprov.c - syncrepl provider */  /* syncprov.c - syncrepl provider */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
Line 1901  syncprov_op_compare( Operation *op, Slap Line 1901  syncprov_op_compare( Operation *op, Slap
         {          {
                 Entry e = {0};                  Entry e = {0};
                 Attribute a = {0};                  Attribute a = {0};
                   AclCheck ak;
   
                 e.e_name = si->si_contextdn;                  e.e_name = si->si_contextdn;
                 e.e_nname = si->si_contextdn;                  e.e_nname = si->si_contextdn;
Line 1914  syncprov_op_compare( Operation *op, Slap Line 1915  syncprov_op_compare( Operation *op, Slap
                 a.a_nvals = a.a_vals;                  a.a_nvals = a.a_vals;
                 a.a_numvals = si->si_numcsns;                  a.a_numvals = si->si_numcsns;
   
                 rs->sr_err = access_allowed( op, &e, op->oq_compare.rs_ava->aa_desc,                  ak.ak_e = &e;
                         &op->oq_compare.rs_ava->aa_value, ACL_COMPARE, NULL );                  ak.ak_desc = op->oq_compare.rs_ava->aa_desc;
                   ak.ak_val = &op->oq_compare.rs_ava->aa_value;
                   ak.ak_access = ACL_COMPARE;
                   ak.ak_state = NULL;
                   rs->sr_err = access_allowed( op, &ak );
                 if ( ! rs->sr_err ) {                  if ( ! rs->sr_err ) {
                         rs->sr_err = LDAP_INSUFFICIENT_ACCESS;                          rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
                         goto return_results;                          goto return_results;

Removed from v.1.307  
changed lines
  Added in v.1.307.2.1


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org