return;
}
-#ifdef LDAP_CONNECTIONLESS
- if ( op->o_cldap ) {
- rc = ber_printf( ber, "{is{t{essN}N}N}", msgid, "", tag,
- err, matched ? matched : "", text ? text : "" );
- } else
-#endif
{
rc = ber_printf( ber, "{it{ess",
msgid, tag, err,
msgid = 0;
}
-#ifdef LDAP_CONNECTIONLESS
- if ( op->o_cldap ) {
- ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_UDP_SET_DST,
- (void *)&op->o_clientaddr );
- Debug( LDAP_DEBUG_TRACE, "UDP response to %s port %d\n",
- inet_ntoa(((struct sockaddr_in *)
- &op->o_clientaddr)->sin_addr ),
- ((struct sockaddr_in *) &op->o_clientaddr)->sin_port,
- 0 );
- }
-#endif
-
send_ldap_response( conn, op, tag, msgid,
err, NULL, text, NULL,
reqoid, NULL, NULL, NULL );
tag = req2res( op->o_tag );
msgid = (tag != LBER_SEQUENCE) ? op->o_msgid : 0;
-#ifdef LDAP_CONNECTIONLESS
- if ( op->o_cldap ) {
- ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_UDP_SET_DST,
- (void *)&op->o_clientaddr );
- Debug( LDAP_DEBUG_TRACE, "UDP response to %s port %d\n",
- inet_ntoa(((struct sockaddr_in *)
- &op->o_clientaddr)->sin_addr ),
- ((struct sockaddr_in *) &op->o_clientaddr)->sin_port,
- 0 );
- }
-#endif
-
send_ldap_response( conn, op, tag, msgid,
err, matched, text, ref,
NULL, NULL, NULL, ctrls );
tag = req2res( op->o_tag );
msgid = (tag != LBER_SEQUENCE) ? op->o_msgid : 0;
-#ifdef LDAP_CONNECTIONLESS
- if ( op->o_cldap ) {
- ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_UDP_SET_DST,
- (void *)&op->o_clientaddr );
- Debug( LDAP_DEBUG_TRACE, "UDP response to %s port %d\n",
- inet_ntoa(((struct sockaddr_in *)
- &op->o_clientaddr)->sin_addr ),
- ((struct sockaddr_in *) &op->o_clientaddr)->sin_port,
- 0 );
- }
-#endif
-
send_ldap_response( conn, op, tag, msgid,
err, matched, text, ref,
NULL, NULL, cred, ctrls );
tag = req2res( op->o_tag );
msgid = (tag != LBER_SEQUENCE) ? op->o_msgid : 0;
-#ifdef LDAP_CONNECTIONLESS
- if ( op->o_cldap ) {
- ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_UDP_SET_DST,
- (void *)&op->o_clientaddr );
- Debug( LDAP_DEBUG_TRACE, "UDP response to %s port %d\n",
- inet_ntoa(((struct sockaddr_in *)
- &op->o_clientaddr)->sin_addr ),
- ((struct sockaddr_in *) &op->o_clientaddr)->sin_port,
- 0 );
- }
-#endif
-
send_ldap_response( conn, op, tag, msgid,
err, matched, text, refs,
rspoid, rspdata, NULL, ctrls );
tag = req2res( op->o_tag );
msgid = (tag != LBER_SEQUENCE) ? op->o_msgid : 0;
-#ifdef LDAP_CONNECTIONLESS
- if ( op->o_cldap ) {
- ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_UDP_SET_DST,
- (void *)&op->o_clientaddr );
- Debug( LDAP_DEBUG_TRACE, "UDP response to %s port %d\n",
- inet_ntoa(((struct sockaddr_in *)
- &op->o_clientaddr)->sin_addr ),
- ((struct sockaddr_in *) &op->o_clientaddr)->sin_port,
- 0 );
- }
-#endif
-
send_ldap_response( conn, op, tag, msgid,
err, matched, text, refs,
NULL, NULL, NULL, ctrls );