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 "fistname.lastname@company.com". 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:
Log in with Azure AD.
Log out.
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.
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 "fistname.lastname@company.com". 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:
teamcity.auth.formatDN=DOMAIN\\$login$
Steps to reproduce:
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.