struct RGWUserInfo
{
- uint64_t auid;
rgw_user user_id;
string display_name;
string user_email;
set<string> mfa_ids;
RGWUserInfo()
- : auid(0),
- suspended(0),
+ : suspended(0),
max_buckets(RGW_DEFAULT_MAX_BUCKETS),
op_mask(RGW_OP_TYPE_ALL),
admin(0),
void encode(bufferlist& bl) const {
ENCODE_START(20, 9, bl);
- encode(auid, bl);
+ encode((uint64_t)0, bl); // old auid
string access_key;
string secret_key;
if (!access_keys.empty()) {
}
void decode(bufferlist::const_iterator& bl) {
DECODE_START_LEGACY_COMPAT_LEN_32(20, 9, 9, bl);
- if (struct_v >= 2) decode(auid, bl);
- else auid = CEPH_AUTH_UID_DEFAULT;
+ if (struct_v >= 2) {
+ uint64_t old_auid;
+ decode(old_auid, bl);
+ }
string access_key;
string secret_key;
decode(access_key, bl);
encode_json("suspended", (int)suspended, f);
encode_json("max_buckets", (int)max_buckets, f);
- encode_json("auid", auid, f);
-
encode_json_map("subusers", NULL, "subuser", NULL, user_info_dump_subuser,(void *)this, subusers, f);
encode_json_map("keys", NULL, "key", NULL, user_info_dump_key,(void *)this, access_keys, f);
encode_json_map("swift_keys", NULL, "key", NULL, user_info_dump_swift_key,(void *)this, swift_keys, f);
JSONDecoder::decode_json("suspended", susp, obj);
suspended = (__u8)susp;
JSONDecoder::decode_json("max_buckets", max_buckets, obj);
- JSONDecoder::decode_json("auid", auid, obj);
JSONDecoder::decode_json("keys", access_keys, decode_access_keys, obj);
JSONDecoder::decode_json("swift_keys", swift_keys, decode_swift_keys, obj);