LDAP Synchronization Error in TeamCity 6.5 - 'invalid attribute description'

Hi,

I'm getting to following error when attempting LDAP Synchronization in TeamCity 6.5:

'Fatal error while LDAP users synchronization: invalid attribute description; nested exception is javax.naming.directory.InvalidSearchFilterException: invalid attribute description; remaining name '''


I am, however able to log in and authenticate successfully against LDAP via TeamCity. In teamcity-ldap.log, I see the following:
[2011-05-28 12:09:19,334]   INFO -     jetbrains.buildServer.LDAP - ------ LdapManager Start ------
[2011-05-28 12:09:19,334]   WARN -     jetbrains.buildServer.LDAP - Incorrect 'syncTimeout' option (integer expected): 3600000   
[2011-05-28 12:09:19,334]   INFO -     jetbrains.buildServer.LDAP - LDAP properties loaded
[2011-05-28 12:09:19,334]   INFO -     jetbrains.buildServer.LDAP - ------ Sync with LDAP users started ------
[2011-05-28 12:09:19,443]   WARN -     jetbrains.buildServer.LDAP - Fatal error while LDAP users synchronization: invalid attribute description; nested exception is javax.naming.directory.InvalidSearchFilterException: invalid attribute description; remaining name ''
[2011-05-28 12:09:19,443]   INFO -     jetbrains.buildServer.LDAP - Last syncronization statistics: created users=0, updated users=0, removed users=0, users in ldap=0, matched users=0, duration=109ms, errors=[Fatal error while LDAP users synchronization: invalid attribute description; nested exception is javax.naming.directory.InvalidSearchFilterException: invalid attribute description; remaining name '']

(An an aside, note the 'Incorrect syncTimeout option' error - this property is copied verbatim from the ldap-config.properties.dist file - is this a bug?)

My ldap-config.properties file looks like:
java.naming.provider.url=ldap://myserverdnsname/DC=myRootDC
teamcity.auth.loginFilter=.*
teamcity.users.login.filter=(sAMAccountName=$capturedLogin$)
# LDAP credentials for TeamCity plugin.
java.naming.security.principal=MYDOMAIN\\mySamAccountName
java.naming.security.credentials=password
# Synchronize both users and groups. Remove obsolete TeamCity users, but don't create new ones automatically.
teamcity.options.users.synchronize=true
teamcity.options.groups.synchronize=true
teamcity.options.createUsers=false
teamcity.options.deleteUsers=true
teamcity.options.syncTimeout=3600000
# Search users from the root.
teamcity.users.base=
teamcity.users.filter=(objectClass=user)
teamcity.users.username=sAMAccountName  
# Search groups from the root.
teamcity.groups.base=
teamcity.groups.filter=(objectClass=group)
teamcity.groups.property.member=member

What am I doing wrong?

Thanks for your help!
1 comment
Comment actions Permalink

Hi Andrew,

Please turn on debug logging, it's hard to identify the problem immediately.
As for "syncTimeout" - this is weird. Is it possible that there is a space in the value?


---
Maxim

0

Please sign in to leave a comment.