LDAP was out of sync with the other auth modules, and the default
error code is not correct for S3.
Fixes: https://tracker.ceph.com/issues/41760
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit
226227cf2d825b3414b7522a9f738180142f3956)
}*/
if (ldh->auth(base64_token.id, base64_token.key) != 0) {
- return result_t::deny();
+ return result_t::deny(-ERR_INVALID_ACCESS_KEY);
}
auto apl = apl_factory->create_apl_remote(cct, s, get_acl_strategy(),