1 /* delete.c - shell backend delete function */
22 struct shellinfo *si = (struct shellinfo *) be->be_private;
25 if ( si->si_delete == NULL ) {
26 send_ldap_result( conn, op, LDAP_UNWILLING_TO_PERFORM, NULL,
27 "delete not implemented", NULL, NULL );
31 if ( (op->o_private = (void *) forkandexec( si->si_delete, &rfp, &wfp ))
33 send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, NULL,
34 "could not fork/exec", NULL, NULL );
38 /* write out the request to the delete process */
39 fprintf( wfp, "DELETE\n" );
40 fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
41 print_suffixes( wfp, be );
42 fprintf( wfp, "dn: %s\n", dn );
45 /* read in the results and send them along */
46 read_and_send_results( be, conn, op, rfp, NULL, 0 );