LDAP groups synchronization troubleshooting
I am trying to synchronize LDAP group to TeamCity group and getting the following error:
Last synchronization summary: found 163 users in LDAP, 40 are matched with TeamCity users.
TeamCity users: no users modified.
Encountered 1 errors during users synchronization.
Error during group synchronization: Remote entry retrieved as a member of a group does not match any known user or group. Entry: 'Engineering'. Synchronized group: '[remoteId='CN=Engineering,OU=QS GROUPS,OU=Qualisystems New,OU=Qualisystems,DC=qualisystems,DC=local', groupKey='ENGINEERING', name='null', description='null', memberIds=[Engineering]]'
Here are my settinngs (TeamCity 8.0.4 (build 27616) )
ldap-config.properties
ldap-mapping.xml
teamcity-ldap.log
There is a group Engineering in TeamCity with Group Key: ENGINEERING
What's wrong?
Here are my settinngs (TeamCity 8.0.4 (build 27616) )
ldap-config.properties
java.naming.provider.url=ldap://Black:389/DC=qualisystems,DC=local
java.naming.security.principal=USER
java.naming.security.credentials=PASSWORD
teamcity.users.login.filter=(sAMAccountName=$capturedLogin$)
teamcity.users.username=sAMAccountName
java.naming.security.authentication=simple
java.naming.referral=follow
teamcity.options.users.synchronize=true
teamcity.options.createUsers=true
teamcity.options.deleteUsers=false
teamcity.users.filter=(objectClass=user)
teamcity.users.base=OU=Qualisystems
teamcity.users.property.email=mail
teamcity.users.property.displayName=displayName
teamcity.options.groups.synchronize=true
teamcity.groups.base=OU=Qualisystems
teamcity.groups.filter=(objectClass=group)
teamcity.groups.property.member=member
java.naming.security.principal=USER
java.naming.security.credentials=PASSWORD
teamcity.users.login.filter=(sAMAccountName=$capturedLogin$)
teamcity.users.username=sAMAccountName
java.naming.security.authentication=simple
java.naming.referral=follow
teamcity.options.users.synchronize=true
teamcity.options.createUsers=true
teamcity.options.deleteUsers=false
teamcity.users.filter=(objectClass=user)
teamcity.users.base=OU=Qualisystems
teamcity.users.property.email=mail
teamcity.users.property.displayName=displayName
teamcity.options.groups.synchronize=true
teamcity.groups.base=OU=Qualisystems
teamcity.groups.filter=(objectClass=group)
teamcity.groups.property.member=member
ldap-mapping.xml
<!DOCTYPE mapping SYSTEM "ldap-mapping.dtd">
<mapping>
<group-mapping teamcityGroupKey="ENGINEERING" ldapGroupDn="CN=Engineering,OU=QS GROUPS,OU=Qualisystems New,OU=Qualisystems,DC=qualisystems,DC=local"/>
</mapping>
<mapping>
<group-mapping teamcityGroupKey="ENGINEERING" ldapGroupDn="CN=Engineering,OU=QS GROUPS,OU=Qualisystems New,OU=Qualisystems,DC=qualisystems,DC=local"/>
</mapping>
teamcity-ldap.log
[2014-01-13 13:31:19,570] INFO - jetbrains.buildServer.LDAP - Starting synchronization session
[2014-01-13 13:31:19,570] INFO - jetbrains.buildServer.LDAP - Fetching remote users and groups
[2014-01-13 13:31:19,593] WARN - jetbrains.buildServer.LDAP - Total results: 163
[2014-01-13 13:31:19,596] INFO - jetbrains.buildServer.LDAP - LDAP groups mapping loaded
[2014-01-13 13:31:19,631] WARN - jetbrains.buildServer.LDAP - Total results: 88
[2014-01-13 13:31:19,632] INFO - jetbrains.buildServer.LDAP - Group Admin Group {key=ADMIN} should have been deleted, but automatic group deletion is disabled
[2014-01-13 13:31:19,632] INFO - jetbrains.buildServer.LDAP - Group Release Automation {key=AUTOMATION} should have been deleted, but automatic group deletion is disabled
[2014-01-13 13:31:19,632] INFO - jetbrains.buildServer.LDAP - Group R&D DotNet {key=RnD_DOTNET} should have been deleted, but automatic group deletion is disabled
[2014-01-13 13:31:19,633] WARN - jetbrains.buildServer.LDAP - Error during group synchronization: Remote entry retrieved as a member of a group does not match any known user or group. Entry: 'Engineering'. Synchronized group: '[remoteId='CN=Engineering,OU=QS GROUPS,OU=Qualisystems New,OU=Qualisystems,DC=qualisystems,DC=local', groupKey='ENGINEERING', name='null', description='null', memberIds=[Engineering]]'
[2014-01-13 13:31:19,633] INFO - jetbrains.buildServer.LDAP - Last synchronization statistics: created users=0, updated users=0, deleted users=0, remote users=163, matched users=40, created groups=0, updated groups=0, deleted groups=0, remote groups=1, matched groups=1, duration=63ms, errors=[Error during group synchronization: Remote entry retrieved as a member of a group does not match any known user or group. Entry: 'Engineering'. Synchronized group: '[remoteId='CN=Engineering,OU=QS GROUPS,OU=Qualisystems New,OU=Qualisystems,DC=qualisystems,DC=local', groupKey='ENGINEERING', name='null', description='null', memberIds=[Engineering]]']
[2014-01-13 14:05:37,679] WARN - jetbrains.buildServer.LDAP - Total results: 1
[2014-01-13 13:31:19,570] INFO - jetbrains.buildServer.LDAP - Fetching remote users and groups
[2014-01-13 13:31:19,593] WARN - jetbrains.buildServer.LDAP - Total results: 163
[2014-01-13 13:31:19,596] INFO - jetbrains.buildServer.LDAP - LDAP groups mapping loaded
[2014-01-13 13:31:19,631] WARN - jetbrains.buildServer.LDAP - Total results: 88
[2014-01-13 13:31:19,632] INFO - jetbrains.buildServer.LDAP - Group Admin Group {key=ADMIN} should have been deleted, but automatic group deletion is disabled
[2014-01-13 13:31:19,632] INFO - jetbrains.buildServer.LDAP - Group Release Automation {key=AUTOMATION} should have been deleted, but automatic group deletion is disabled
[2014-01-13 13:31:19,632] INFO - jetbrains.buildServer.LDAP - Group R&D DotNet {key=RnD_DOTNET} should have been deleted, but automatic group deletion is disabled
[2014-01-13 13:31:19,633] WARN - jetbrains.buildServer.LDAP - Error during group synchronization: Remote entry retrieved as a member of a group does not match any known user or group. Entry: 'Engineering'. Synchronized group: '[remoteId='CN=Engineering,OU=QS GROUPS,OU=Qualisystems New,OU=Qualisystems,DC=qualisystems,DC=local', groupKey='ENGINEERING', name='null', description='null', memberIds=[Engineering]]'
[2014-01-13 13:31:19,633] INFO - jetbrains.buildServer.LDAP - Last synchronization statistics: created users=0, updated users=0, deleted users=0, remote users=163, matched users=40, created groups=0, updated groups=0, deleted groups=0, remote groups=1, matched groups=1, duration=63ms, errors=[Error during group synchronization: Remote entry retrieved as a member of a group does not match any known user or group. Entry: 'Engineering'. Synchronized group: '[remoteId='CN=Engineering,OU=QS GROUPS,OU=Qualisystems New,OU=Qualisystems,DC=qualisystems,DC=local', groupKey='ENGINEERING', name='null', description='null', memberIds=[Engineering]]']
[2014-01-13 14:05:37,679] WARN - jetbrains.buildServer.LDAP - Total results: 1
There is a group Engineering in TeamCity with Group Key: ENGINEERING
What's wrong?
Please sign in to leave a comment.