Univention Bugzilla – Bug 47779
Connector ignores Group for Computer Accounts
Last modified: 2018-10-10 16:25:05 CEST
Steps to reproduce:
tail -f connector-24.log
Create a Group named ie "LinuxGruppe" through Module Groups (yellow)
Create a new computer (ie lxclient) with type "Rechner: Linux", safe (red)
Edit computer "Advanced -> Groups" and add above LinuxGruppe" to the computer (red)
You will get in connector-s4.log:
11.09.2018 11:18:37,261 LDAP (PROCESS): sync from ucs: [ group] [ modify] cn=linuxgruppe,cn=groups,DC=multi,DC=ucs
11.09.2018 11:18:37,267 LDAP (WARNING): group_members_sync_from_ucs: failed to identify object type of ucs member, ignore membership: cn=lxclient,cn=computers,dc=multi,dc=ucs
Is this expected behaviour? User claims in previous versions the groups got synced properly.
Tested above on UCS 4.3-1 e218
The identify part in s4connector.s4.group_members_sync_from_ucs ignored ucs_module_others and therefor did not sync membership for computers/linux, computers/ubuntu ... objects.
Added a identify_udm_object to the ucs class (mainly copied from the existing onces). group_members_sync_from_ucs now uses this.
I was tempted to replace the other identify parts in the connector with a call to the new function, but they are all slightly different ...
univention-s4-connector: b071d3387aa86bcc96163a0f6cbd44cbe7a6ae76 9e6de6b1335af564790ca66f5ee20e0bddc3ed18
Code review: Ok
Test status in Jenkins: Ok