mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Add send_ldap_sasl() to facility implementation of SASL bind.
This commit is contained in:
parent
f0fb0db2fc
commit
a9fb92467e
3 changed files with 72 additions and 4 deletions
|
|
@ -330,6 +330,12 @@ LIBSLAPD_F (void) send_ldap_result LDAP_P((
|
|||
struct berval **refs,
|
||||
LDAPControl **ctrls ));
|
||||
|
||||
LIBSLAPD_F (void) send_ldap_sasl LDAP_P((
|
||||
Connection *conn, Operation *op,
|
||||
ber_int_t err, const char *matched,
|
||||
const char *text,
|
||||
struct berval *cred ));
|
||||
|
||||
LIBSLAPD_F (void) send_ldap_disconnect LDAP_P((
|
||||
Connection *conn, Operation *op,
|
||||
ber_int_t err, const char *text ));
|
||||
|
|
@ -337,8 +343,8 @@ LIBSLAPD_F (void) send_ldap_disconnect LDAP_P((
|
|||
LIBSLAPD_F (void) send_ldap_extended LDAP_P((
|
||||
Connection *conn, Operation *op,
|
||||
ber_int_t err, const char *matched,
|
||||
const char *text, char *rspoid,
|
||||
struct berval *rspdata ));
|
||||
const char *text,
|
||||
char *rspoid, struct berval *rspdata ));
|
||||
|
||||
LIBSLAPD_F (void) send_search_result LDAP_P((
|
||||
Connection *conn, Operation *op,
|
||||
|
|
|
|||
|
|
@ -440,6 +440,41 @@ send_ldap_result(
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
send_ldap_sasl(
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
ber_int_t err,
|
||||
const char *matched,
|
||||
const char *text,
|
||||
struct berval *cred
|
||||
)
|
||||
{
|
||||
ber_tag_t tag;
|
||||
ber_int_t msgid;
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "send_ldap_sasl %ld\n",
|
||||
(long) err, NULL, NULL );
|
||||
|
||||
tag = req2res( op->o_tag );
|
||||
msgid = (tag != LBER_SEQUENCE) ? op->o_msgid : 0;
|
||||
|
||||
#ifdef LDAP_CONNECTIONLESS
|
||||
if ( op->o_cldap ) {
|
||||
ber_pvt_sb_udp_set_dst( conn->c_sb, &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, NULL,
|
||||
NULL, cred, NULL );
|
||||
}
|
||||
|
||||
void
|
||||
send_ldap_extended(
|
||||
Connection *conn,
|
||||
|
|
@ -455,8 +490,8 @@ send_ldap_extended(
|
|||
ber_int_t msgid;
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"send_ldap_extended %d:%s\n",
|
||||
err, rspoid ? rspoid : "", NULL );
|
||||
"send_ldap_extended %ld:%s\n",
|
||||
(long) err, rspoid ? rspoid : "", NULL );
|
||||
|
||||
tag = req2res( op->o_tag );
|
||||
msgid = (tag != LBER_SEQUENCE) ? op->o_msgid : 0;
|
||||
|
|
|
|||
|
|
@ -39,6 +39,33 @@ send_ldap_disconnect(
|
|||
assert(0);
|
||||
}
|
||||
|
||||
void
|
||||
send_ldap_extended(
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
ber_int_t err,
|
||||
const char *matched,
|
||||
const char *text,
|
||||
char *rspoid,
|
||||
struct berval *rspdata
|
||||
)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
|
||||
void
|
||||
send_ldap_sasl(
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
ber_int_t err,
|
||||
const char *matched,
|
||||
const char *text,
|
||||
struct berval *cred
|
||||
)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
|
||||
void
|
||||
send_ldap_result(
|
||||
Connection *conn,
|
||||
|
|
|
|||
Loading…
Reference in a new issue