1 /* unbind.c - decode an ldap unbind operation and pass it to a backend db */
4 * Copyright (c) 1995 Regents of the University of Michigan.
7 * Redistribution and use in source and binary forms are permitted
8 * provided that this notice is preserved and that due credit is given
9 * to the University of Michigan at Ann Arbor. The name of the University
10 * may not be used to endorse or promote products derived from this
11 * software without specific prior written permission. This software
12 * is provided ``as is'' without express or implied warranty.
19 #include <sys/types.h>
20 #include <sys/socket.h>
23 extern Backend *select_backend();
24 extern void be_unbind();
26 extern char *default_referral;
27 extern pthread_mutex_t new_conn_mutex;
35 Debug( LDAP_DEBUG_TRACE, "do_unbind\n", 0, 0, 0 );
38 * Parse the unbind request. It looks like this:
40 * UnBindRequest ::= NULL
43 Statslog( LDAP_DEBUG_STATS, "conn=%d op=%d UNBIND\n", conn->c_connid,
44 op->o_opid, 0, 0, 0 );
46 /* pass the unbind to all backends */
47 be_unbind( conn, op );
49 /* close the connection to the client */
50 close_connection( conn, op->o_connid, op->o_opid );