case Control::FALLBACK:
/* Don't try next. */
- return std::make_pair(false, std::move(strategy_result));
+ return std::make_pair(false, std::move(engine_result));
default:
/* Huh, memory corruption? */
if (driver->get_user_by_access_key(dpp, access_key_id, y, &user) < 0) {
ldpp_dout(dpp, 5) << "error reading user info, uid=" << access_key_id
<< " can't authenticate" << dendl;
- return result_t::deny(-ERR_INVALID_ACCESS_KEY);
+ return result_t::reject(-ERR_INVALID_ACCESS_KEY);
}
//TODO: Uncomment, when we have a migration plan in place.
/*else {
const auto iter = user->get_info().access_keys.find(access_key_id);
if (iter == std::end(user->get_info().access_keys)) {
ldpp_dout(dpp, 0) << "ERROR: access key not encoded in user info" << dendl;
- return result_t::deny(-EPERM);
+ return result_t::reject(-EPERM);
}
const RGWAccessKey& k = iter->second;
ldpp_dout(dpp, 15) << "compare=" << compare << dendl;
if (compare != 0) {
- return result_t::deny(-ERR_SIGNATURE_NO_MATCH);
+ return result_t::reject(-ERR_SIGNATURE_NO_MATCH);
}
auto apl = apl_factory->create_apl_local(cct, s, user->get_info(),