1 /* unbind.c - shell backend unbind function */
21 struct shellinfo *si = (struct shellinfo *) be->be_private;
24 if ( si->si_unbind == NULL ) {
25 send_ldap_result( conn, op, LDAP_UNWILLING_TO_PERFORM, NULL,
26 "unbind not implemented", NULL, NULL );
30 if ( (op->o_private = (void *) forkandexec( si->si_unbind, &rfp, &wfp ))
32 send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, NULL,
33 "could not fork/exec", NULL, NULL );
37 /* write out the request to the unbind process */
38 fprintf( wfp, "UNBIND\n" );
39 fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
40 print_suffixes( wfp, be );
41 fprintf( wfp, "dn: %s\n", (conn->c_dn ? conn->c_dn : "") );
44 /* no response to unbind */