# Bug OP-7253 - Remapping of existing users with `oauth_allow_remapping_of_existing_users' does not work with LDAP users

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7253

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 10.6.2 |
| Observed in versions |  |
| Sprint | 10.6.2 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

*   Have a user authenticate from LDAP
*   Set `Setting.oauth_allow_remapping_of_existing_users = true`
*   Try to remap that user with an SSO connection

**Actual**

User cannot be reidentified because `auth_source_id` has to be nil

**Expected**

User can be reidentified.
