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