Let us have a look at how to configure the user authentication via the MS Active Directory Service.
1) Login into Windows as Administrator
2) Export LDAP context to the file.
ldifde –f ldap.txt
3) Open the result ldap.txt file. The first line of the file must look like
dn: DC=ldap-server,DC=my-company,DC=com
As ldap.baseDN in trackstudio.ldap.properties use cn=users in specified DN, e.g. DN, for example cn=users,dc=ldap-server,dc=my-company,dc=com.
4) Specify the user name which will be used to login to the server. For example, in case you want to use an Administrator specify
CN=Administrator,DC=Users,DC=ldap-server,DC=my-company,DC=com
Make certain that CN contains Windows Common Name in the Active Directory Service. If you want to use the login specify loginAttrLDAP=sAMAccountName. Set the password and test the connection by clicking the Test Connection button.
5) The user's name or login in TrackStudio and in the Active Directory Service must also coincide.
ldap.loginAttrTS name ldap.loginAttrLDAP cn
ldap.loginAttrTS login ldap.loginAttrLDAP sAMAccountName
You should always use TrackStudio user login name in the login window. TrackStudio will check the user existence in the local DB by the entered user login and will use it as the login or name to authorize via LDAP.