]> git.sur5r.net Git - openldap/blob - servers/slapd/back-bdb2/unbind.c
Introduction of a new Berkeley DB version 2 (!) specific backend.
[openldap] / servers / slapd / back-bdb2 / unbind.c
1 /* unbind.c - handle an ldap unbind operation */
2
3 #include "portable.h"
4
5 #include <stdio.h>
6 #include <ac/socket.h>
7
8 #include "slap.h"
9 #include "back-bdb2.h"
10
11 static int
12 bdb2i_back_unbind_internal(
13         Backend     *be,
14         Connection  *conn,
15         Operation   *op
16 )
17 {
18         return( 0 );
19 }
20
21
22 int
23 bdb2_back_unbind(
24         Backend     *be,
25         Connection  *conn,
26         Operation   *op
27 )
28 {
29         struct timeval  time1, time2;
30         char   *elapsed_time;
31         int    ret;
32
33         gettimeofday( &time1, NULL );
34
35         ret = bdb2i_back_unbind_internal( be, conn, op );
36
37         if ( bdb2i_do_timing ) {
38
39                 gettimeofday( &time2, NULL);
40                 elapsed_time = bdb2i_elapsed( time1, time2 );
41                 Debug( LDAP_DEBUG_ANY, "conn=%d op=%d UNBIND elapsed=%s\n",
42                                 conn->c_connid, op->o_opid, elapsed_time );
43                 free( elapsed_time );
44
45         }
46
47         return( ret );
48 }