mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
line up with back-bdb/hdb (ITS#6661)
This commit is contained in:
parent
55f88b5b49
commit
1c5d78ec95
1 changed files with 6 additions and 10 deletions
|
|
@ -42,18 +42,14 @@ ndb_back_bind( Operation *op, SlapReply *rs )
|
|||
op->o_req_dn.bv_val, 0, 0);
|
||||
|
||||
/* allow noauth binds */
|
||||
rs->sr_err = be_rootdn_bind( op, NULL );
|
||||
switch ( rs->sr_err ) {
|
||||
case SLAP_CB_CONTINUE:
|
||||
break;
|
||||
|
||||
case LDAP_INVALID_CREDENTIALS:
|
||||
send_ldap_result( op, rs );
|
||||
/* fallthru */
|
||||
|
||||
switch ( be_rootdn_bind( op, NULL ) ) {
|
||||
case LDAP_SUCCESS:
|
||||
/* frontend will send result */
|
||||
return rs->sr_err;
|
||||
return rs->sr_err = LDAP_SUCCESS;
|
||||
|
||||
default:
|
||||
/* give the database a chance */
|
||||
break;
|
||||
}
|
||||
|
||||
/* Get our NDB handle */
|
||||
|
|
|
|||
Loading…
Reference in a new issue