Back to index

openldap  2.4.31
Functions
unbind.c File Reference
#include "portable.h"
#include <stdio.h>
#include <ac/socket.h>
#include "slap.h"

Go to the source code of this file.

Functions

int do_unbind (Operation *op, SlapReply *rs)

Function Documentation

int do_unbind ( Operation op,
SlapReply rs 
)

Definition at line 37 of file unbind.c.

{
       Debug( LDAP_DEBUG_TRACE, "%s do_unbind\n",
              op->o_log_prefix, 0, 0 );

       /*
        * Parse the unbind request.  It looks like this:
        *
        *     UnBindRequest ::= NULL
        */

       Statslog( LDAP_DEBUG_STATS, "%s UNBIND\n", op->o_log_prefix,
              0, 0, 0, 0 );

       if ( frontendDB->be_unbind ) {
              op->o_bd = frontendDB;
              (void)frontendDB->be_unbind( op, rs );
              op->o_bd = NULL;
       }

       /* pass the unbind to all backends */
       (void)backend_unbind( op, rs );

       return 0;
}

Here is the call graph for this function: