don't mix return codes (ITS#4711)

This commit is contained in:
Pierangelo Masarati 2006-10-14 09:26:22 +00:00
parent fb2d3926ce
commit b1a2be99c6

View File

@ -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