}
/* try keystone auth first */
- int external_auth_result = -ERR_INVALID_ACCESS_KEY;;
+ int external_auth_result = -ERR_INVALID_ACCESS_KEY;
if (store->ctx()->_conf->rgw_s3_auth_use_keystone
&& !store->ctx()->_conf->rgw_keystone_url.empty()) {
dout(20) << "s3 keystone: trying keystone auth" << dendl;
RGWLDAPTokenExtractor token_extr(s);
RGWLDAPAuthEngine ldap(s->cct, store, token_extr, &aplfact);
- if (! ldap.is_applicable()) {
- external_auth_result = -EACCES;
- } else {
+ if (ldap.is_applicable()) {
auto applier = ldap.authenticate();
if (!applier) {
external_auth_result = -EACCES;