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

[management][ldap] user dn is case sensitive #2091

Closed
NicolasGeraud opened this issue Mar 26, 2019 · 0 comments

Comments

@NicolasGeraud
Copy link
Member

commented Mar 26, 2019

Current Behavior

depending on ldap attribute case, we can create doublon

Possible Solution

the user sourceId in gravitee must be case insensitive

Steps to Reproduce (for bugs)

  1. in an ldap where attributes are in uppercase (dn: uid=aknutson,OU=People,DC=example,DC=com)
  2. As ADMIN, choose an API X -> Members -> + "Search user" -> seach for an LDAP user who didn't login yet (ie.aknutson) -> Select role: USER.
  3. in database, the sourceId of this new user is "uid=aknutson,OU=People,DC=example,DC=com"
  4. Login for the first time with user "aknutson"
  5. A new user appears in database with sourceId "uid=aknutson,ou=People,dc=example,dc=com"

Your Environment

  • Version used: 1.24.x

@NicolasGeraud NicolasGeraud added this to the APIM - 1.24.1 milestone Mar 26, 2019

@NicolasGeraud NicolasGeraud self-assigned this Mar 26, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-test that referenced this issue Mar 26, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-mongodb that referenced this issue Mar 26, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-redis that referenced this issue Mar 26, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-jdbc that referenced this issue Mar 26, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-mongodb that referenced this issue Mar 27, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-test that referenced this issue Mar 27, 2019

aelamrani added a commit to gravitee-io/gravitee-repository-test that referenced this issue Apr 1, 2019

aelamrani added a commit to gravitee-io/gravitee-repository-mongodb that referenced this issue Apr 1, 2019

aelamrani added a commit to gravitee-io/gravitee-repository-redis that referenced this issue Apr 1, 2019

aelamrani added a commit to gravitee-io/gravitee-repository-jdbc that referenced this issue Apr 1, 2019

@aelamrani aelamrani closed this Apr 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.