LDAP and groups

Answered

We currently use LDAP synchronization for 15 developers.
We have three AD groups set up, sgTeamCityUsers, scTeamCityDevelopers, scTeamCityAdmins
The developers are all in the the sgTeamCityUsers and scTeamCityDevelopers. A couple are in the scTeamCityAdmins group
We look up the users using the following filter (in ldap-config.properties)
teamcity.users.filter=(&(objectCategory=Person)(memberOf:1.2.840.113556.1.4.1941:=CN=SG_TeamCity_Users,OU=Miscellaneous,OU=Application,OU=Groups,DC=idtdna,DC=com))
We have a mapping set up (ldap-mapping.xml) to map scTeamCityDevelopers to Developers and scTeamCityAdmins to Admin.
This all works great.

We now have a request to add another department. Rather than adding them the users individually to the sgTeamCityUsers and scTeamCityDevelopers groups, we tried adding their AD department group (EnterpriseApp_DPT) to the sgTeamCityUsers and scTeamCityDevelopers groups. This did not work as expected. When run the LDAP synchronization tab says:
"Last synchronization summary: found 24 users in LDAP, 15 are matched with TeamCity users".
"TeamCity users: no users modified."

So it seems to have found the extra 9 users but does not create them and map them to developers.
The log has the following:

[2011-01-11 07:39:40,503]   INFO -     jetbrains.buildServer.LDAP - ------ Sync with LDAP users started ------ 
[2011-01-11 07:39:40,909]   INFO -     jetbrains.buildServer.LDAP - Sync with LDAP users done 
[2011-01-11 07:39:40,909]   INFO -     jetbrains.buildServer.LDAP - ------ Sync with LDAP groups started ------ 
[2011-01-11 07:39:40,909]   INFO -     jetbrains.buildServer.LDAP - LDAP groups mapping loaded 
[2011-01-11 07:39:40,925]   INFO -     jetbrains.buildServer.LDAP - Cannot match member 'CN=EnterpriseApp_DPT,OU=Users,OU=Coralville,OU=Department,OU=Groups,DC=idtdna,DC=com' of LDAP group 'CN=SG_TeamCity_Developers,OU=Miscellaneous,OU=Application,OU=Groups,DC=idtdna,DC=com' with LDAP user or group. 
[2011-01-11 07:39:40,925]   INFO -     jetbrains.buildServer.LDAP - Sync with LDAP groups done 
[2011-01-11 07:39:40,925]   INFO -     jetbrains.buildServer.LDAP - Last syncronization statistics: created users=0, updated users=0, removed users=0, users in ldap=24, matched users=15, duration=563ms, errors=[]


Other settings from LDAP-Config
teamcity.groups.base=OU=Miscellaneous,OU=Application,OU=Groups
teamcity.groups.filter=(objectClass=group)

Anyone have any ideas on how to get this to work other than adding all the users to both groups.
0
3 comments

Hi Eric,

If I understand correctly you want to synchronize not direct members of the group. Users are found because they match the filter, but not synchronized because aren't immediate (direct) members of sgTeamCityUsers and scTeamCityDevelopers.
I suggest you create another group in TeamCity and enable sync for it as well.
If you feel that is valueable feature for TeamCity, don't hesitate to write a request at http://youtrack.jetbrains.net/


---
Maxim

0

For the filter, where does the ":1.2.840.113556.1.4.1941" come from?

0

Please sign in to leave a comment.