summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados/rgw_user.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2024-02-25 16:04:44 +0100
committerCasey Bodley <cbodley@redhat.com>2024-04-10 19:09:16 +0200
commit947390a342208a8348b030a179bc723d866c0104 (patch)
tree1f8a41974c631ed2810acbbba9f6456dfcbb2fb8 /src/rgw/driver/rados/rgw_user.h
parentrgw: deny 'account rm' if not empty (diff)
downloadceph-947390a342208a8348b030a179bc723d866c0104.tar.xz
ceph-947390a342208a8348b030a179bc723d866c0104.zip
rgw: make user email matching case-insensitive
handle user emails the same way we do account account emails. store RGWUserInfo::user_email exactly as the user specified it, but convert the object name to lower-case for case-insensitive matching Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados/rgw_user.h')
-rw-r--r--src/rgw/driver/rados/rgw_user.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rgw/driver/rados/rgw_user.h b/src/rgw/driver/rados/rgw_user.h
index ec177bfdcbd..d3303f96257 100644
--- a/src/rgw/driver/rados/rgw_user.h
+++ b/src/rgw/driver/rados/rgw_user.h
@@ -242,9 +242,7 @@ struct RGWUserAdminOpState {
}
void set_user_email(const std::string& email) {
- /* always lowercase email address */
user_email = email;
- boost::algorithm::to_lower(user_email);
user_email_specified = true;
}