mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
really put SLAPI behind its #ifdef
This commit is contained in:
parent
5192938964
commit
2fccb8d68e
7 changed files with 16 additions and 6 deletions
|
|
@ -687,9 +687,9 @@ backend_unbind(
|
|||
)
|
||||
{
|
||||
int i;
|
||||
#if defined( LDAP_SLAPI )
|
||||
Slapi_PBlock *pb = op->o_pb;
|
||||
|
||||
#if defined( LDAP_SLAPI )
|
||||
int rc;
|
||||
slapi_x_connection_set_pb( pb, conn );
|
||||
slapi_x_operation_set_pb( pb, op );
|
||||
|
|
|
|||
|
|
@ -49,7 +49,9 @@ do_bind(
|
|||
struct berval cred = { 0, NULL };
|
||||
Backend *be = NULL;
|
||||
|
||||
#ifdef LDAP_SLAPI
|
||||
Slapi_PBlock *pb = op->o_pb;
|
||||
#endif
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( OPERATION, ENTRY, "do_bind: conn %d\n", conn->c_connid, 0, 0 );
|
||||
|
|
|
|||
|
|
@ -49,7 +49,9 @@ do_compare(
|
|||
const char *text = NULL;
|
||||
int manageDSAit;
|
||||
|
||||
#ifdef LDAP_SLAPI
|
||||
Slapi_PBlock *pb = op->o_pb;
|
||||
#endif
|
||||
|
||||
ava.aa_desc = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,9 @@ do_delete(
|
|||
int rc;
|
||||
int manageDSAit;
|
||||
|
||||
#ifdef LDAP_SLAPI
|
||||
Slapi_PBlock *pb = op->o_pb;
|
||||
#endif
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( OPERATION, ENTRY,
|
||||
|
|
|
|||
|
|
@ -42,17 +42,17 @@ do_modify(
|
|||
ber_len_t len;
|
||||
Modifications *modlist = NULL;
|
||||
Modifications **modtail = &modlist;
|
||||
#ifdef LDAP_SLAPI
|
||||
LDAPMod **modv = NULL;
|
||||
#endif
|
||||
#ifdef LDAP_DEBUG
|
||||
Modifications *tmp;
|
||||
#endif
|
||||
#ifdef LDAP_SLAPI
|
||||
LDAPMod **modv = NULL;
|
||||
Slapi_PBlock *pb = op->o_pb;
|
||||
#endif
|
||||
Backend *be;
|
||||
int rc;
|
||||
const char *text;
|
||||
int manageDSAit;
|
||||
Slapi_PBlock *pb = op->o_pb;
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( OPERATION, ENTRY, "do_modify: enter\n", 0, 0, 0 );
|
||||
|
|
|
|||
|
|
@ -65,7 +65,9 @@ do_modrdn(
|
|||
const char *text;
|
||||
int manageDSAit;
|
||||
|
||||
#ifdef LDAP_SLAPI
|
||||
Slapi_PBlock *pb = op->o_pb;
|
||||
#endif
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( OPERATION, ENTRY, "do_modrdn: begin\n", 0, 0, 0 );
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
* without express or implied warranty.
|
||||
*/
|
||||
|
||||
#ifdef LDAP_SLAPI /* SLAPI is OPTIONAL */
|
||||
|
||||
#ifndef _SLAPI_H
|
||||
#define _SLAPI_H
|
||||
|
||||
|
|
@ -526,4 +528,4 @@ LDAP_END_DECL
|
|||
#include "proto-slapi.h"
|
||||
|
||||
#endif /* _SLAPI_H */
|
||||
|
||||
#endif /* LDAP_SLAPI */
|
||||
|
|
|
|||
Loading…
Reference in a new issue