mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 04:13:55 -05:00
ITS#5618 log Search result errors, force Deref to Never
This commit is contained in:
parent
a8dcb36efb
commit
d4216935d7
1 changed files with 8 additions and 0 deletions
|
|
@ -579,6 +579,9 @@ do_syncrep1(
|
|||
|
||||
ldap_set_option( si->si_ld, LDAP_OPT_TIMELIMIT, &si->si_tlimit );
|
||||
|
||||
rc = LDAP_DEREF_NEVER; /* actually could allow DEREF_FINDING */
|
||||
ldap_set_option( si->si_ld, LDAP_OPT_DEREF, &rc );
|
||||
|
||||
si->si_syncCookie.rid = si->si_rid;
|
||||
|
||||
/* whenever there are multiple data sources possible, advertise sid */
|
||||
|
|
@ -911,6 +914,11 @@ do_syncrep2(
|
|||
rc = err;
|
||||
goto done;
|
||||
}
|
||||
if ( err ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"do_syncrep2: %s LDAP_RES_SEARCH_RESULT (%d) %s\n",
|
||||
si->si_ridtxt, err, ldap_err2string( err ) );
|
||||
}
|
||||
if ( rctrls ) {
|
||||
rctrlp = *rctrls;
|
||||
ber_init2( ber, &rctrlp->ldctl_value, LBER_USE_DER );
|
||||
|
|
|
|||
Loading…
Reference in a new issue