Back to index

openldap  2.4.31
Functions | Variables
pbind.c File Reference
#include "portable.h"
#include <stdio.h>
#include <ac/string.h>
#include <ac/socket.h>
#include "lutil.h"
#include "slap.h"
#include "back-ldap.h"
#include "config.h"

Go to the source code of this file.

Functions

static int ldap_pbind_bind (Operation *op, SlapReply *rs)
static int ldap_pbind_db_init (BackendDB *be, ConfigReply *cr)
static int ldap_pbind_db_open (BackendDB *be, ConfigReply *cr)
static int ldap_pbind_db_close (BackendDB *be, ConfigReply *cr)
static int ldap_pbind_db_destroy (BackendDB *be, ConfigReply *cr)
static int ldap_pbind_connection_destroy (BackendDB *be, Connection *conn)
int pbind_initialize (void)

Variables

static BackendInfolback
static slap_overinst ldappbind

Function Documentation

static int ldap_pbind_bind ( Operation op,
SlapReply rs 
) [static]

Definition at line 39 of file pbind.c.

{
       slap_overinst *on = (slap_overinst *) op->o_bd->bd_info;
       void *private = op->o_bd->be_private;
       void *bi = op->o_bd->bd_info;
       int rc;

       op->o_bd->bd_info = lback;
       op->o_bd->be_private = on->on_bi.bi_private;
       rc = lback->bi_op_bind( op, rs );
       op->o_bd->be_private = private;
       op->o_bd->bd_info = bi;

       return rc;
}

Here is the caller graph for this function:

static int ldap_pbind_connection_destroy ( BackendDB be,
Connection conn 
) [static]

Definition at line 137 of file pbind.c.

{
       slap_overinst *on = (slap_overinst *) be->bd_info;
       void                 *private = be->be_private;
       int                         rc;

       be->be_private = on->on_bi.bi_private;
       rc = lback->bi_connection_destroy( be, conn );
       be->be_private = private;

       return rc;
}

Here is the caller graph for this function:

static int ldap_pbind_db_close ( BackendDB be,
ConfigReply *  cr 
) [static]

Definition at line 104 of file pbind.c.

{
       slap_overinst *on = (slap_overinst *) be->bd_info;
       void   *private = be->be_private;
       int           rc;

    be->be_private = on->on_bi.bi_private;
       rc = lback->bi_db_close( be, cr );
       be->be_private = private;

       return rc;
}

Here is the caller graph for this function:

static int ldap_pbind_db_destroy ( BackendDB be,
ConfigReply *  cr 
) [static]

Definition at line 120 of file pbind.c.

{
       slap_overinst *on = (slap_overinst *) be->bd_info;
       void   *private = be->be_private;
       int           rc;

    be->be_private = on->on_bi.bi_private;
       rc = lback->bi_db_close( be, cr );
       on->on_bi.bi_private = be->be_private;
       be->be_private = private;

       return rc;
}

Here is the caller graph for this function:

static int ldap_pbind_db_init ( BackendDB be,
ConfigReply *  cr 
) [static]

Definition at line 58 of file pbind.c.

{
       slap_overinst *on = (slap_overinst *)be->bd_info;
       ConfigOCs     *be_cf_ocs = be->be_cf_ocs;
       void          *private = be->be_private;
       int rc;

       if ( lback == NULL ) {
              lback = backend_info( "ldap" );

              if ( lback == NULL ) {
                     return 1;
              }
       }

       rc = lback->bi_db_init( be, cr );
       on->on_bi.bi_private = be->be_private;
       be->be_cf_ocs = be_cf_ocs;
       be->be_private = private;

       return rc;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static int ldap_pbind_db_open ( BackendDB be,
ConfigReply *  cr 
) [static]

Definition at line 84 of file pbind.c.

{
       slap_overinst *on = (slap_overinst *) be->bd_info;
       void   *private = be->be_private;
       int           rc;
       int           monitoring;

    be->be_private = on->on_bi.bi_private;
       monitoring = ( SLAP_DBFLAGS( be ) & SLAP_DBFLAG_MONITORING );
       SLAP_DBFLAGS( be ) &= ~SLAP_DBFLAG_MONITORING;
       rc = lback->bi_db_open( be, cr );
       SLAP_DBFLAGS( be ) |= monitoring;
       be->be_private = private;

       return rc;
}

Here is the caller graph for this function:


Variable Documentation

BackendInfo* lback [static]

Definition at line 34 of file pbind.c.

Definition at line 36 of file pbind.c.