]> git.sur5r.net Git - openldap/blob - servers/slapd/unbind.c
Modified to use libtool's ltdl instead of gmodule
[openldap] / servers / slapd / unbind.c
1 /* unbind.c - decode an ldap unbind operation and pass it to a backend db */
2 /*
3  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6
7 /*
8  * Copyright (c) 1995 Regents of the University of Michigan.
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms are permitted
12  * provided that this notice is preserved and that due credit is given
13  * to the University of Michigan at Ann Arbor. The name of the University
14  * may not be used to endorse or promote products derived from this
15  * software without specific prior written permission. This software
16  * is provided ``as is'' without express or implied warranty.
17  *
18  */
19
20 #include "portable.h"
21
22 #include <stdio.h>
23
24 #include <ac/socket.h>
25
26 #include "slap.h"
27
28
29 int
30 do_unbind(
31     Connection  *conn,
32     Operation   *op
33 )
34 {
35         Debug( LDAP_DEBUG_TRACE, "do_unbind\n", 0, 0, 0 );
36
37         /*
38          * Parse the unbind request.  It looks like this:
39          *
40          *      UnBindRequest ::= NULL
41          */
42
43         Statslog( LDAP_DEBUG_STATS, "conn=%ld op=%d UNBIND\n", op->o_connid,
44             op->o_opid, 0, 0, 0 );
45
46         /* pass the unbind to all backends */
47         backend_unbind( conn, op );
48
49         return 0;
50 }