mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
rgw: fix indentation in RGWPostObj_ObjStore_S3::get_policy().
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
This commit is contained in:
parent
fa02054684
commit
0dadcbcdfb
@ -1860,26 +1860,26 @@ int RGWPostObj_ObjStore_S3::get_policy()
|
|||||||
}
|
}
|
||||||
s->perm_mask = RGW_PERM_FULL_CONTROL;
|
s->perm_mask = RGW_PERM_FULL_CONTROL;
|
||||||
}
|
}
|
||||||
} else if (ldap.is_applicable()) {
|
} else if (ldap.is_applicable()) {
|
||||||
try {
|
try {
|
||||||
auto applier = ldap.authenticate();
|
auto applier = ldap.authenticate();
|
||||||
if (! applier) {
|
if (! applier) {
|
||||||
return -EACCES;
|
return -EACCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
applier->load_acct_info(*s->user);
|
applier->load_acct_info(*s->user);
|
||||||
s->perm_mask = applier->get_perm_mask();
|
s->perm_mask = applier->get_perm_mask();
|
||||||
applier->modify_request_state(s);
|
applier->modify_request_state(s);
|
||||||
s->auth_identity = std::move(applier);
|
s->auth_identity = std::move(applier);
|
||||||
} catch (int err) {
|
} catch (int err) {
|
||||||
return -EACCES;
|
return -EACCES;
|
||||||
}
|
}
|
||||||
} catch (int err) {
|
} catch (int err) {
|
||||||
return -EACCES;
|
return -EACCES;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return -EACCES;
|
return -EACCES;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
map<string, RGWAccessKey> access_keys = user_info.access_keys;
|
map<string, RGWAccessKey> access_keys = user_info.access_keys;
|
||||||
|
Loading…
Reference in New Issue
Block a user