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

LDAP synchronized user is deleted after signing in with Azure AD #57

Open
LapNik opened this issue Jun 17, 2021 · 0 comments
Open

LDAP synchronized user is deleted after signing in with Azure AD #57

LapNik opened this issue Jun 17, 2021 · 0 comments

Comments

@LapNik
Copy link

LapNik commented Jun 17, 2021

When I use both the Azure AD and default login page authentication methods, my LDAP synchronized user gets deleted. I assume that this is because logging in with Azure AD changes the username from "firstname.lastname" to "[email protected]". The property teamcity.options.deleteUsers is enabled in my setup, so when the LDAP users are synchronized the latter username is not found and the user is deleted.

Preconditions:

  • LDAP module enabled.
  • Automatic deletion of users is enabled in LDAP configuration.
  • At least one LDAP synchronized user exists in teamcity.
  • teamcity.auth.formatDN=DOMAIN\\$login$

Steps to reproduce:

  1. Log in with Azure AD.
  2. Log out.
  3. Log in with teamcity login page.

EXPECTED RESULTS:
Both login methods log in the same user.

ACTUAL RESULTS:
The original synchronized teamcity user is removed. New user is created if LDAP setting about creating new user on first login is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant