mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
don't try to lookup the rootdn; handle errors separately
This commit is contained in:
parent
7b245a0a55
commit
aa16988d3c
@ -183,9 +183,10 @@ retcode_cb_response( Operation *op, SlapReply *rs )
|
||||
|
||||
if ( rs->sr_err == LDAP_SUCCESS ) {
|
||||
rdc->rdc_flags = SLAP_CB_CONTINUE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return SLAP_CB_CONTINUE;
|
||||
}
|
||||
|
||||
static int
|
||||
@ -252,8 +253,13 @@ retcode_op_func( Operation *op, SlapReply *rs )
|
||||
case LDAP_REQ_ADD:
|
||||
return retcode_op_add( op, rs );
|
||||
|
||||
case LDAP_REQ_MODIFY:
|
||||
case LDAP_REQ_BIND:
|
||||
if ( be_isroot_pw( op ) ) {
|
||||
return SLAP_CB_CONTINUE;
|
||||
}
|
||||
/* fallthru */
|
||||
|
||||
case LDAP_REQ_MODIFY:
|
||||
case LDAP_REQ_DELETE:
|
||||
case LDAP_REQ_MODRDN:
|
||||
case LDAP_REQ_COMPARE:
|
||||
|
Loading…
Reference in New Issue
Block a user