Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a regular user with same uid as LDAP user #604

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rgw/v2/tests/aws/test_ldap_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ def test_exec(config, ssh_con):
out = utils.exec_shell_cmd(cmd)
log.info(f"Listing bucket {bucket_name}: {out}")

# test User create on top of a LDAP user with same uid
# Polarion CEPH-9822
log.info("Try to create a regular user with same UID as LDAP user")
cmd = f"radosgw-admin user create --uid ldapuser1"
err = utils.exec_shell_cmd(cmd, return_err=True)
assert "exists" in str(err), "User create should fail!"

# check for any crashes during the execution
crash_info = s3_reusable.check_for_crash()
if crash_info:
Expand Down
Loading