#include "ldap_rq.h"
+/* FIXME: for ldap_ld_free() */
+#undef ldap_debug
+#include "../../libraries/libldap/ldap-int.h"
+
#define SYNCREPL_STR "syncreplxxx"
#define CN_STR "cn="
{
int i, j, k, l, n;
char **attrs, **exattrs;
- ObjectClass *oc;
if ( !sync_descs[0] ) {
sync_descs[0] = slap_schema.si_ad_objectClass;
for ( i = 0; exattrs[i] != NULL; i++ ) {
for ( j = 0; si->si_anlist[j].an_name.bv_val; j++ ) {
- if ( oc = si->si_anlist[j].an_oc ) {
+ ObjectClass *oc;
+ if ( ( oc = si->si_anlist[j].an_oc ) ) {
k = 0;
while ( oc->soc_required[k] ) {
if ( !strcmp( exattrs[i],
char syncrepl_cbuf[sizeof(CN_STR SYNCREPL_STR)];
struct berval syncrepl_cn_bv;
struct sync_cookie *sc = NULL;
- struct sync_cookie syncCookie = { NULL, -1, NULL };
struct berval *psub;
#ifdef HAVE_TLS
void *ssl;
AttributeAssertion ava = {0};
int rc = LDAP_SUCCESS;
int ret = LDAP_SUCCESS;
- const char *text;
struct berval pdn = BER_BVNULL;
struct berval org_req_dn = BER_BVNULL;
Modifications *mod;
Modifications *modlist = NULL;
Modifications **modtail = &modlist;
- Attribute *attr;
AttributeName an[2];
struct berval pdn = BER_BVNULL;