]> git.sur5r.net Git - openldap/blob - servers/slapd/unbind.c
(re)introduce o_connid such that STATS doesn't need c_mutex (which it
[openldap] / servers / slapd / unbind.c
1 /* unbind.c - decode an ldap unbind operation and pass it to a backend db */
2
3 /*
4  * Copyright (c) 1995 Regents of the University of Michigan.
5  * All rights reserved.
6  *
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.
13  *
14  */
15
16 #include "portable.h"
17
18 #include <stdio.h>
19
20 #include <ac/socket.h>
21
22 #include "slap.h"
23
24
25 int
26 do_unbind(
27     Connection  *conn,
28     Operation   *op
29 )
30 {
31         Debug( LDAP_DEBUG_TRACE, "do_unbind\n", 0, 0, 0 );
32
33         /*
34          * Parse the unbind request.  It looks like this:
35          *
36          *      UnBindRequest ::= NULL
37          */
38
39         Statslog( LDAP_DEBUG_STATS, "conn=%d op=%d UNBIND\n", op->o_connid,
40             op->o_opid, 0, 0, 0 );
41
42         /* pass the unbind to all backends */
43         backend_unbind( conn, op );
44
45         return 0;
46 }