Lines Matching refs:op
36 Operation *op,
45 op->o_log_prefix, 0, 0 );
58 if ( ber_scanf( op->o_ber, "{m" /*}*/, &dn ) == LBER_ERROR ) {
60 op->o_log_prefix, 0, 0 );
61 send_ldap_discon( op, rs, LDAP_PROTOCOL_ERROR, "decoding error" );
65 if ( ber_scanf( op->o_ber, "{mm}", &desc, &value ) == LBER_ERROR ) {
67 op->o_log_prefix, 0, 0 );
68 send_ldap_discon( op, rs, LDAP_PROTOCOL_ERROR, "decoding error" );
72 if ( ber_scanf( op->o_ber, /*{*/ "}" ) == LBER_ERROR ) {
74 op->o_log_prefix, 0, 0 );
75 send_ldap_discon( op, rs, LDAP_PROTOCOL_ERROR, "decoding error" );
79 if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) {
81 op->o_log_prefix, 0, 0 );
85 rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn,
86 op->o_tmpmemctx );
89 op->o_log_prefix, dn.bv_val, 0 );
90 send_ldap_error( op, rs, LDAP_INVALID_DN_SYNTAX, "invalid DN" );
96 op->o_log_prefix, op->o_req_dn.bv_val,
105 send_ldap_result( op, rs );
113 &value, &ava.aa_value, &rs->sr_text, op->o_tmpmemctx );
115 send_ldap_result( op, rs );
119 op->orc_ava = &ava;
123 op->o_req_dn.bv_val,
126 op->o_bd = frontendDB;
127 rs->sr_err = frontendDB->be_compare( op, rs );
130 op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx );
131 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx );
133 op->o_tmpfree( ava.aa_value.bv_val, op->o_tmpmemctx );
140 fe_op_compare( Operation *op, SlapReply *rs )
143 AttributeAssertion *ava = op->orc_ava;
144 BackendDB *bd = op->o_bd;
146 if( strcasecmp( op->o_req_ndn.bv_val, LDAP_ROOT_DSE ) == 0 ) {
147 if( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
148 send_ldap_result( op, rs );
152 rs->sr_err = root_dse_info( op->o_conn, &entry, &rs->sr_text );
154 send_ldap_result( op, rs );
158 } else if ( bvmatch( &op->o_req_ndn, &frontendDB->be_schemandn ) ) {
159 if( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
160 send_ldap_result( op, rs );
167 send_ldap_result( op, rs );
174 rs->sr_err = slap_compare_entry( op, entry, ava );
177 send_ldap_result( op, rs );
193 op->o_bd = select_backend( &op->o_req_ndn, 0 );
194 if ( op->o_bd == NULL ) {
196 NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );
200 op->o_bd = bd;
201 send_ldap_result( op, rs );
209 if( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
210 send_ldap_result( op, rs );
215 if( backend_check_referrals( op, rs ) != LDAP_SUCCESS ) {
219 if ( SLAP_SHADOW(op->o_bd) && get_dontUseCopy(op) ) {
221 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
225 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
229 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
234 && op->o_bd->be_has_subordinates )
238 rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &entry );
240 if ( ! access_allowed( op, entry,
246 rc = rs->sr_err = op->o_bd->be_has_subordinates( op,
248 be_entry_release_r( op, entry );
267 if ( backend_access( op, NULL, &op->o_req_ndn,
275 send_ldap_result( op, rs );
281 } else if ( op->o_bd->be_compare ) {
282 rs->sr_err = op->o_bd->be_compare( op, rs );
295 * or if op->o_bd->be_compare is NULL.
303 rs->sr_err = backend_attribute( op, NULL, &op->o_req_ndn,
309 if ( backend_access( op, NULL, &op->o_req_ndn,
319 if ( value_find_ex( op->oq_compare.rs_ava->aa_desc,
322 vals, &ava->aa_value, op->o_tmpmemctx ) == 0 )
334 send_ldap_result( op, rs );
341 ber_bvarray_free_x( vals, op->o_tmpmemctx );
346 op->o_bd = bd;
351 Operation *op,
358 if ( ! access_allowed( op, e,
365 if ( get_assert( op ) &&
366 ( test_filter( op, e, get_assertion( op )) != LDAP_COMPARE_TRUE ))
382 if (( ava->aa_desc != a->a_desc ) && ! access_allowed( op,
392 &ava->aa_value, NULL, op->o_tmpmemctx ) == 0 )
401 if ( ! access_allowed( op, e,