mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix request controls
This commit is contained in:
parent
1a56a1934a
commit
c5afa82d58
1 changed files with 9 additions and 10 deletions
|
|
@ -291,12 +291,19 @@ vc_exop(
|
|||
"%s VERIFYCREDENTIALS", op->o_log_prefix );
|
||||
}
|
||||
|
||||
conn->op->o_tag = LDAP_REQ_BIND;
|
||||
memset( &conn->op->oq_bind, 0, sizeof( conn->op->oq_bind ) );
|
||||
conn->op->o_req_dn = ndn;
|
||||
conn->op->o_req_ndn = ndn;
|
||||
conn->op->o_protocol = LDAP_VERSION3;
|
||||
conn->op->orb_method = authtag;
|
||||
conn->op->o_callback = ≻
|
||||
|
||||
/* TODO: controls */
|
||||
tag = ber_peek_tag( ber, &len );
|
||||
if ( tag == LDAP_TAG_EXOP_VERIFY_CREDENTIALS_CONTROLS ) {
|
||||
conn->op->o_ber = ber;
|
||||
rc = get_ctrls( conn->op, &rs2, 0 );
|
||||
(void)ber_free( conn->op->o_ber, 1 );
|
||||
rc = get_ctrls2( conn->op, &rs2, 0, LDAP_TAG_EXOP_VERIFY_CREDENTIALS_CONTROLS );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
rs->sr_err = LDAP_PROTOCOL_ERROR;
|
||||
goto done;
|
||||
|
|
@ -309,14 +316,6 @@ vc_exop(
|
|||
goto done;
|
||||
}
|
||||
|
||||
conn->op->o_tag = LDAP_REQ_BIND;
|
||||
memset( &conn->op->oq_bind, 0, sizeof( conn->op->oq_bind ) );
|
||||
conn->op->o_req_dn = ndn;
|
||||
conn->op->o_req_ndn = ndn;
|
||||
conn->op->o_protocol = LDAP_VERSION3;
|
||||
conn->op->orb_method = authtag;
|
||||
conn->op->o_callback = ≻
|
||||
|
||||
switch ( authtag ) {
|
||||
case LDAP_AUTH_SIMPLE:
|
||||
sc.sc_response = slap_null_cb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue