1 /* unbind.c - shell backend unbind function */
23 struct shellinfo *si = (struct shellinfo *) be->be_private;
26 if ( si->si_unbind == NULL ) {
27 send_ldap_result( conn, op, LDAP_UNWILLING_TO_PERFORM, NULL,
28 "unbind not implemented" );
32 if ( (op->o_private = forkandexec( si->si_unbind, &rfp, &wfp ))
34 send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, NULL,
35 "could not fork/exec" );
39 /* write out the request to the unbind process */
40 fprintf( wfp, "UNBIND\n" );
41 fprintf( wfp, "msgid: %d\n", op->o_msgid );
42 print_suffixes( wfp, be );
43 fprintf( wfp, "dn: %s\n", dn );
46 /* no response to unbind */