"Failed to get user data from LDAP"

I have configured my TeamCity environment for LDAP authentication and synchronization. I am able to successfully login to team city with an LDAP user, however I'm struggling to get user data (such as Full Name, email, etc) to populate into their teamcity profile. When reviewing the teamcity-ldap.log  the only useful info I can find is:

WARN -     jetbrains.buildServer.LDAP - Failed to get user data from LDAP. user='tester' {id=88}, because search result is empty

My ldap-config.properties is configured  as follows:

java.naming.provider.url=ldap://xx.xx.xx.xx:1389/DC=network,DC=local
java.naming.security.authentication=simple
java.naming.referral=follow
teamcity.auth.loginFilter=[^/\\\\@]+
teamcity.users.login.filter=(cn=$capturedLogin$)
teamcity.auth.formatDN=uid=$login$,ou=people,dc=network,dc=local
teamcity.options.users.synchronize=true
teamcity.options.groups.synchronize=false
teamcity.options.createUsers=false
teamcity.options.deleteUsers=false
teamcity.options.syncTimeout = 3600000
java.naming.security.principal=cn=proxyagent,ou=profile,dc=network,dc=local
java.naming.security.credentials=******
teamcity.users.base=OU=people
teamcity.users.filter=(objectClass=user)
teamcity.users.username=uid
teamcity.property.distinguishedName=distinguishedName
teamcity.users.property.displayName=gecos

At the very least I would like to be able to pull their full name from LDAP, which I assume is the "teamcity.users.property.displayName" parameter. In my LDAP environment this is in the field named "gecos".

1 comment
Comment actions Permalink

Hi Peter,

Is this case still actual?
The warning means that the user 'tester' could not be found in LDAP using configured filters. Please check that teamcity.users.base and teamcity.users.filter are correct and user with such uid actually exists in LDAP.
Please enable debug-ldap logging preset on Administration>Diagnostics page, run LDAP synchronization and attach teamcity-ldap.log file.

0

Please sign in to leave a comment.