This is also affecting us, we try to migrate from LDAP to an OAuth
provider with the same user set.

We are using the following Python script to test the migration:

```
def create_user(clone_user: User, domain_id, idp_id):
    role_assignments = 
list(conn.identity.role_assignments(user_id=clone_user.id))
    new_user = keystone_client.users.create(
        name={clone_user.name},
        domain=domain_id,
        email=clone_user.email,
        enabled=True,
        federated=[{
            "idp_id": idp_id,
            "protocols": [{
                "protocol_id": "openid", "unique_id": {clone_user.name}
            }]
        }]
    )
```

After user creation we get the issue that "More than one user exists
with the name '<username>'" when doing a `openstack user show --domain
<domain> <username>`. Did not find a workaround yet

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1844616

Title:
  federated user creation creates duplicates of existing user accounts

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1844616/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to