TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Typical LDAP Configurations

Last modified: 20 April 2023

This page contains samples of ldap-config.properties file for different configuration cases.

Basic LDAP Login



The backup LDAP server is specified. Provided users can log in to LDAP with "EXAMPLE\Username", they log in to TeamCity also as "EXAMPLE\Username", the username stored in TeamCity is "Username".

Basic LDAP Login for Users in Specific LDAP Group Only



Only users from a specific user group are allowed to log in. The users need to enter the username only the without domain part to log in.

Active Directory With User Details Synchronization



Users can log in to TeamCity with their domain name without the domain part, there is an account "teamcity" with password "secret" that can read all Active Directory entries. The TeamCity user display name and email are synchronized from Active Directory.

Active Directory With Group Synchronization



There should be ldap-mapping.xml file with one or more group mappings defined.

ldap-config.properties file: