mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
don't mix return codes (ITS#4711)
This commit is contained in:
parent
fb2d3926ce
commit
b1a2be99c6
@ -392,17 +392,17 @@ meta_back_search_start(
|
||||
dc->target = mt;
|
||||
dc->ctx = "searchBase";
|
||||
switch ( ldap_back_dn_massage( dc, &realbase, &mbase ) ) {
|
||||
default:
|
||||
case LDAP_SUCCESS:
|
||||
break;
|
||||
|
||||
case REWRITE_REGEXEC_UNWILLING:
|
||||
case LDAP_UNWILLING_TO_PERFORM:
|
||||
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
|
||||
rs->sr_text = "Operation not allowed";
|
||||
send_ldap_result( op, rs );
|
||||
retcode = META_SEARCH_ERR;
|
||||
goto doreturn;
|
||||
|
||||
case REWRITE_REGEXEC_ERR:
|
||||
default:
|
||||
|
||||
/*
|
||||
* this target is no longer candidate
|
||||
|
Loading…
Reference in New Issue
Block a user