• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/

Lines Matching refs:op

39     Operation	*op,
45 op->o_log_prefix, 0, 0 );
52 if ( ber_scanf( op->o_ber, "m", &dn ) == LBER_ERROR ) {
54 op->o_log_prefix, 0, 0 );
55 send_ldap_discon( op, rs, LDAP_PROTOCOL_ERROR, "decoding error" );
59 if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) {
61 op->o_log_prefix, 0, 0 );
65 rs->sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn,
66 op->o_tmpmemctx );
69 op->o_log_prefix, dn.bv_val, 0 );
70 send_ldap_error( op, rs, LDAP_INVALID_DN_SYNTAX, "invalid DN" );
75 op->o_log_prefix, op->o_req_dn.bv_val, 0, 0, 0 );
77 if( op->o_req_ndn.bv_len == 0 ) {
79 op->o_log_prefix, 0, 0 );
81 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
85 } else if ( bvmatch( &op->o_req_ndn, &frontendDB->be_schemandn ) ) {
87 op->o_log_prefix, 0, 0 );
89 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
94 op->o_bd = frontendDB;
95 rs->sr_err = frontendDB->be_delete( op, rs );
105 op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx );
106 op->o_tmpfree( op->o_req_ndn.bv_val, op->o_tmpmemctx );
111 fe_op_delete( Operation *op, SlapReply *rs )
114 BackendDB *op_be, *bd = op->o_bd;
121 op->o_bd = select_backend( &op->o_req_ndn, 1 );
122 if ( op->o_bd == NULL ) {
123 op->o_bd = bd;
125 NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );
130 send_ldap_result( op, rs );
134 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
141 op_be = op->o_bd;
142 if ( SLAP_GLUE_INSTANCE( op->o_bd )) {
143 op->o_bd = select_backend( &op->o_req_ndn, 0 );
147 if( backend_check_restrictions( op, rs, NULL ) != LDAP_SUCCESS ) {
148 send_ldap_result( op, rs );
153 if( backend_check_referrals( op, rs ) != LDAP_SUCCESS ) {
163 if ( op->o_bd->be_delete ) {
165 int repl_user = be_isupdate( op );
166 if ( !SLAP_SINGLE_SHADOW(op->o_bd) || repl_user ) {
173 op->o_bd = op_be;
174 op->o_bd->be_delete( op, rs );
176 org_req_dn = op->o_req_dn;
177 org_req_ndn = op->o_req_ndn;
178 org_dn = op->o_dn;
179 org_ndn = op->o_ndn;
180 org_managedsait = get_manageDSAit( op );
181 op->o_dn = op->o_bd->be_rootdn;
182 op->o_ndn = op->o_bd->be_rootndn;
183 op->o_managedsait = SLAP_CONTROL_NONCRITICAL;
186 op->o_delete_glue_parent )
188 op->o_delete_glue_parent = 0;
189 if ( !be_issuffix( op->o_bd, &op->o_req_ndn )) {
192 dnParent( &op->o_req_ndn, &pdn );
193 op->o_req_dn = pdn;
194 op->o_req_ndn = pdn;
195 op->o_callback = &cb;
196 op->o_bd->be_delete( op, rs );
202 op->o_managedsait = org_managedsait;
203 op->o_dn = org_dn;
204 op->o_ndn = org_ndn;
205 op->o_req_dn = org_req_dn;
206 op->o_req_ndn = org_req_ndn;
207 op->o_delete_glue_parent = 0;
210 BerVarray defref = op->o_bd->be_update_refs
211 ? op->o_bd->be_update_refs : default_referral;
215 NULL, &op->o_req_dn, LDAP_SCOPE_DEFAULT );
218 send_ldap_result( op, rs );
223 send_ldap_error( op, rs,
230 send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
235 op->o_bd = bd;