Lines Matching refs:op

44     Operation	*op,
50 op->o_log_prefix );
57 if ( ber_scanf( op->o_ber, "m", &dn ) == LBER_ERROR ) {
59 op->o_log_prefix );
60 send_ldap_discon( op, rs, LDAP_PROTOCOL_ERROR, "decoding error" );
64 if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) {
66 op->o_log_prefix );
70 rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn,
71 op->o_tmpmemctx );
74 op->o_log_prefix, dn.bv_val );
75 send_ldap_error( op, rs, LDAP_INVALID_DN_SYNTAX, "invalid DN" );
80 op->o_log_prefix, op->o_req_dn.bv_val );
82 if( op->o_req_ndn.bv_len == 0 ) {
84 op->o_log_prefix );
86 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
90 } else if ( bvmatch( &op->o_req_ndn, &frontendDB->be_schemandn ) ) {
92 op->o_log_prefix );
94 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
99 op->o_bd = frontendDB;
100 rs->sr_err = frontendDB->be_delete( op, rs );
112 op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx );
113 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx );
118 fe_op_delete( Operation *op, SlapReply *rs )
121 BackendDB *op_be, *bd = op->o_bd;
128 op->o_bd = select_backend( &op->o_req_ndn, 1 );
129 if ( op->o_bd == NULL ) {
130 op->o_bd = bd;
132 NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );
137 send_ldap_result( op, rs );
141 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
148 op_be = op->o_bd;
149 if ( SLAP_GLUE_INSTANCE( op->o_bd )) {
150 op->o_bd = select_backend( &op->o_req_ndn, 0 );
154 if( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
155 send_ldap_result( op, rs );
160 if( backend_check_referrals( op, rs ) != LDAP_SUCCESS ) {
170 if ( op->o_bd->be_delete ) {
172 int repl_user = be_isupdate( op );
173 if ( !SLAP_SINGLE_SHADOW(op->o_bd) || repl_user ) {
180 if ( op->o_txnSpec ) {
181 txn_preop( op, rs );
185 op->o_bd = op_be;
186 op->o_bd->be_delete( op, rs );
188 org_req_dn = op->o_req_dn;
189 org_req_ndn = op->o_req_ndn;
190 org_dn = op->o_dn;
191 org_ndn = op->o_ndn;
192 org_managedsait = get_manageDSAit( op );
193 op->o_dn = op->o_bd->be_rootdn;
194 op->o_ndn = op->o_bd->be_rootndn;
195 op->o_managedsait = SLAP_CONTROL_NONCRITICAL;
198 op->o_delete_glue_parent )
200 op->o_delete_glue_parent = 0;
201 if ( !be_issuffix( op->o_bd, &op->o_req_ndn )) {
204 dnParent( &op->o_req_ndn, &pdn );
205 op->o_req_dn = pdn;
206 op->o_req_ndn = pdn;
207 op->o_callback = &cb;
208 op->o_bd->be_delete( op, rs );
214 op->o_managedsait = org_managedsait;
215 op->o_dn = org_dn;
216 op->o_ndn = org_ndn;
217 op->o_req_dn = org_req_dn;
218 op->o_req_ndn = org_req_ndn;
219 op->o_delete_glue_parent = 0;
222 BerVarray defref = op->o_bd->be_update_refs
223 ? op->o_bd->be_update_refs : default_referral;
227 NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );
230 send_ldap_result( op, rs );
235 send_ldap_error( op, rs,
242 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
247 op->o_bd = bd;