I'm evaluating Youtrack 7 as a replacement for Redmine and I want to use our OpenLDAP system for authentication. We are using the SAMACCOUNTNAME attribute for login names and the CN attribute for the real names. Our directory structure is using the CN attribute as DN. Youtrack seems to construct a binddn for binding using the login name instead of a ldap search, which is not working with our directory layout. This way the user has to login with "firstname lastname" instead of a username.
Teamcity 9 is working fine with our layout, the configuration in ldap-config.properties:
The configuration in Youtrack is the same:
Login attribute: SAMACCOUNTNAME
Name attribtue: cn
When I take a look at hub-ldap.log, Youtrack does not evaluate the correct user DN, which should be cn=Firstname Lastname, ou=location1, ou=users,dc=win,dc=example,dc=com. Instead the logfile shows:
[pPasswordAuthenticationHandler] testuser: auth in LDAP
[LdapClient ] Constructed DN: testuser
How can I achieve this?