/* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ldap-private.h"
static int
struct ldap_op_queue_entry *req,
{
char *result_errmsg;
if (msgtype != LDAP_RES_COMPARE) {
*finished_r = FALSE;
return 0;
}
*finished_r = TRUE;
&result_err, NULL,
if (ret != LDAP_SUCCESS) {
"ldap_parse_result() failed to parse compare: %s",
} else if (result_err == LDAP_COMPARE_TRUE) {
} else if (result_err == LDAP_COMPARE_FALSE) {
} else {
"ldap_compare_ext(dn=%s, attr=%s) failed: %s",
}
if (result_errmsg != NULL)
return res.openldap_ret;
}
static int
const char **error_r)
{
};
LDAP_CONTROL_MANAGEDSAIT, {0, 0}, 0
};
/* try to use ManageDSAIT if available */
};
&bv,
NULL,
if (ret != LDAP_SUCCESS) {
"ldap_compare_ext(dn=%s, attr=%s) failed: %s",
}
return ret;
}
const struct ldap_compare_input *input,
void *context)
{
/* copy strings */
}
{
return result->compare_true;
}