Statslog( LDAP_DEBUG_STATS,
"conn=%ld op=%ld DISCONNECT err=%ld tag=%lu text=%s\n",
- (long) conn->c_connid, (long) op->o_opid,
+ (long) op->o_connid, (long) op->o_opid,
(long) tag, (long) err, text );
}
assert( !LDAP_API_ERROR( err ) );
- Debug( LDAP_DEBUG_TRACE, "send_ldap_result %d:%s:%s\n",
+ Debug( LDAP_DEBUG_TRACE, "send_ldap_result: conn=%ld op=%ld p=%d\n",
+ (long) op->o_connid, (long) op->o_opid, op->o_protocol );
+ Debug( LDAP_DEBUG_ARGS, "send_ldap_result: %d:%s:%s\n",
err, matched ? matched : "", text ? text : "" );
assert( err != LDAP_PARTIAL_RESULTS );
Statslog( LDAP_DEBUG_STATS,
"conn=%ld op=%ld RESULT err=%ld tag=%lu text=%s\n",
- (long) conn->c_connid, (long) op->o_opid,
+ (long) op->o_connid, (long) op->o_opid,
(long) err, (long) tag, text );
if( tmp != NULL ) {
/* send references in search results */
if( err == LDAP_REFERRAL ) {
err = LDAP_PARTIAL_RESULTS;
- tmp = text = v2ref( refs );
- refs = NULL;
}
+ tmp = text = v2ref( refs );
+ refs = NULL;
+
} else {
/* don't send references in search results */
+ assert( refs == NULL );
+ refs = NULL;
+
if( err == LDAP_REFERRAL ) {
err = LDAP_SUCCESS;
- refs = NULL;
}
}
Statslog( LDAP_DEBUG_STATS,
"conn=%ld op=%ld SEARCH RESULT err=%ld tag=%lu text=%s\n",
- (long) conn->c_connid, (long) op->o_opid,
+ (long) op->o_connid, (long) op->o_opid,
(long) err, (long) tag, text );
}
BerElement *ber;
Attribute *a;
int i, rc=-1, bytes;
- struct acl *acl;
+ AccessControl *acl;
char *edn;
int allattrs;