* Given an RGWUserInfo, deletes the user and its bucket ACLs.
*/
extern int rgw_delete_user(RGWRados *store, RGWUserInfo& user, RGWObjVersionTracker& objv_tracker);
-/**
- * Store a list of the user's buckets, with associated functinos.
- */
/*
* remove the different indexes
extern int rgw_remove_email_index(RGWRados *store, string& email);
extern int rgw_remove_swift_name_index(RGWRados *store, string& swift_name);
-/*
- * An RGWUser class along with supporting classes created
- * to support the creation of an RESTful administrative API
- */
-
extern void rgw_perm_to_str(uint32_t mask, char *buf, int len);
extern uint32_t rgw_str_to_perm(const char *str);
+extern int rgw_validate_tenant_name(const string& t);
+
enum ObjectKeyType {
KEY_TYPE_SWIFT,
KEY_TYPE_S3,
RGW_ACCESS_KEY,
};
+/*
+ * An RGWUser class along with supporting classes created
+ * to support the creation of an RESTful administrative API
+ */
struct RGWUserAdminOpState {
// user attributes
RGWUserInfo info;
bool op_mask_specified;
bool caps_specified;
bool suspension_op;
- bool admin_specified;
+ bool admin_specified = false;
bool system_specified;
bool key_op;
bool temp_url_key_specified;