/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2003-2013 The OpenLDAP Foundation.
+ * Copyright 2003-2014 The OpenLDAP Foundation.
* Portions Copyright 2003 IBM Corporation.
* Portions Copyright 2003-2009 Symas Corporation.
* All rights reserved.
#include "config.h"
-#ifdef LDAP_DEVEL
/*
* Control that allows to access the private DB
* instead of the public one
* Monitoring
*/
#define PCACHE_MONITOR
-#endif
/* query cache structs */
/* query */
/* map tag to operation */
type = slap_req2op( op->o_tag );
if ( type != SLAP_OP_LAST ) {
- BI_op_func **func;
+ BackendInfo *bi = cm->db.bd_info;
int rc;
/* execute, if possible */
- func = &cm->db.be_bind;
- if ( func[ type ] != NULL ) {
+ if ( (&bi->bi_op_bind)[ type ] ) {
Operation op2 = *op;
op2.o_bd = &cm->db;
- rc = func[ type ]( &op2, rs );
+ rc = (&bi->bi_op_bind)[ type ]( &op2, rs );
if ( type == SLAP_OP_BIND && rc == LDAP_SUCCESS ) {
op->o_conn->c_authz_cookie = cm->db.be_private;
}