static void init_group_pblock( Operation *op, Entry *target,
Entry *e, struct berval *op_ndn, AttributeDescription *group_at )
{
- slapi_int_pblock_set_operation( op->o_pb, op );
-
slapi_pblock_set( op->o_pb,
SLAPI_X_GROUP_ENTRY, (void *)e );
slapi_pblock_set( op->o_pb,
BerElement *ber = (BerElement *) &berbuf;
LDAPControl c;
Operation myop;
+#ifdef LDAP_SLAPI
+ Slapi_PBlock *pb;
+#endif
Debug( LDAP_DEBUG_ANY, "slap_read_controls: (%s) %s\n",
oid->bv_val, e->e_dn, 0 );
myop = *op;
myop.o_bd = NULL;
myop.o_res_ber = ber;
+#ifdef LDAP_SLAPI
+ pb = myop.o_pb;
+ myop.o_pb = NULL;
+#endif
rc = slap_send_search_entry( &myop, rs );
+#ifdef LDAP_SLAPI
+ myop.o_pb = pb;
+#endif
if( rc ) return rc;
rc = ber_flatten2( ber, &c.ldctl_value, 0 );
return 0;
}
- slapi_int_pblock_set_operation( op->o_pb, op );
slapi_pblock_set( op->o_pb, SLAPI_RESCONTROLS, (void *)rs->sr_ctrls );
slapi_pblock_set( op->o_pb, SLAPI_RESULT_CODE, (void *)rs->sr_err );
slapi_pblock_set( op->o_pb, SLAPI_RESULT_TEXT, (void *)rs->sr_text );
}
}
-void slapi_int_dummy(void)
-{
- /*
- * XXX slapi_search_internal() was no getting pulled
- * in; all manner of linker flags failed to link it.
- * FIXME
- */
- slapi_search_internal( NULL, 0, NULL, NULL, NULL, 0 );
-}
#endif /* LDAP_SLAPI */