Bug 29486 - Lokale Gruppen synchronisieren
Lokale Gruppen synchronisieren
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 3.1
Other Linux
: P5 enhancement (vote)
: UCS 3.2
Assigned To: Stefan Gohmann
Arvid Requate
: interim-3
: 27546 29712 31986 32278 (view as bug list)
Depends on:
Blocks: 29000 31273 32461 41417 42675
  Show dependency treegraph
 
Reported: 2012-11-30 10:30 CET by Stefan Gohmann
Modified: 2017-04-20 12:33 CEST (History)
5 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
local_group_sync.patch (10.20 KB, patch)
2013-08-30 11:32 CEST, Stefan Gohmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2012-11-30 10:30:30 CET
Die lokalen Gruppen sollten ebenfalls zwischen OpenLDAP und S4 synchronisiert werden.
Comment 1 Stefan Gohmann univentionstaff 2013-03-04 07:31:39 CET
*** Bug 27546 has been marked as a duplicate of this bug. ***
Comment 2 Stefan Gohmann univentionstaff 2013-08-13 07:14:10 CEST
*** Bug 31986 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Gohmann univentionstaff 2013-08-29 17:02:58 CEST
Die folgenden Namen sind unterschiedlich:

UCS: System Operators
AD : Server Operators

UCS: Printer-Admins
AD : Print Operators

UCS: Replicators
AD : Replicator

Das Anlegen von lokalen oder Well-Known-Gruppen im S4 ist nicht ohne weiteres möglich, auch das Ändern des Gruppentyps nicht. Deshalb ist geplant, dass der Gruppentyp nur von S4 nach UCS richtig synchronisiert wird und das auch nur beim ersten Anlegen. Wenn eine lokale Gruppe im UCS angelegt wird, dann wird diese als globale Gruppe ins S4 synchronisiert.

Die Gruppenmitglieder werden zwischen den Gruppen dann wie gewünscht synchronisiert.

Test Cases wurden hinzugefügt:
 010_sync_group_type
 011_sync_local_group_membership
Comment 4 Stefan Gohmann univentionstaff 2013-08-30 10:30:26 CEST
Nach der Aktivierung würden die folgenden Gruppenmitglieder aus cn=users entfernt werden:

  member: CN=Domain Users,CN=Groups
  member: CN=S-1-5-4,CN=ForeignSecurityPrincipals
  member: CN=S-1-5-11,CN=ForeignSecurityPrincipals

Domain Users könnte über das base.ldif eingepflegt werden. Die anderen Mitglieder sollten eigentlich durch den Connector ignoriert werden.
Comment 5 Stefan Gohmann univentionstaff 2013-08-30 11:32:56 CEST
Created attachment 5403 [details]
local_group_sync.patch

Erster Patch.
Comment 6 Stefan Gohmann univentionstaff 2013-09-04 06:18:21 CEST
If we change this we should map all Samba group types in UMC/UDM and we should check which group type can be member of which group:
 - domain local groups
 - global groups
 - universal groups
 - builtin groups
 - pseudo groups (Bug #29000)

Furthermore we should create the groups via Samba 4 provisioning or samba 3 join script: Bug #32461.

We should check the 3.2 timeline after MS2.
Comment 7 Stefan Gohmann univentionstaff 2013-10-14 21:57:35 CEST
Local groups are now synchronized between OpenLDAP and S4 if connector/s4/mapping/group/synclocal is set to true (default in 3.2). All other systems need to be migrated manually: Bug #32863.

Test case: 52_s4connector/011_sync_local_group_membership
Comment 8 Arvid Requate univentionstaff 2013-10-24 19:19:49 CEST
* One minor issue: the uinst script unsets  connector/s4/mapping/group/synclocal but Bug 32767 renamed the variable to connector/s4/mapping/group/grouptype.

* Just for future readers of this bug history: As far as I read the code, the local groups can now be synchronized bidirectionally, i.e. also samba4 can be convinced to accept the creation of a local group (which usually have a non-domain-SID).

Verified:
 * The testcase (adding an UDM member to Printer-Admins) works
 * A group created in UDM as "local" is synchronized to Samba4
 * Changelog ok
Comment 9 Stefan Gohmann univentionstaff 2013-10-24 20:16:42 CEST
(In reply to Arvid Requate from comment #8)
> * One minor issue: the uinst script unsets 
> connector/s4/mapping/group/synclocal but Bug 32767 renamed the variable to
> connector/s4/mapping/group/grouptype.

Fixed.

> * Just for future readers of this bug history: As far as I read the code,
> the local groups can now be synchronized bidirectionally, i.e. also samba4
> can be convinced to accept the creation of a local group (which usually have
> a non-domain-SID).

Yes, but that is only in the S4 connector scenario possible. The AD connector can't create these local groups via LDAP interface.
Comment 10 Stefan Gohmann univentionstaff 2013-10-25 11:12:17 CEST
Another traceback has been fixed: r45587
Comment 11 Arvid Requate univentionstaff 2013-10-28 14:46:55 CET
I adjusted univention-ad-takeover to map the builtin groups and foreignsecurityPrincipals as well -- untested.
Comment 12 Stefan Gohmann univentionstaff 2013-10-29 08:13:05 CET
(In reply to Arvid Requate from comment #11)
> I adjusted univention-ad-takeover to map the builtin groups and
> foreignsecurityPrincipals as well -- untested.

Thanks, I've updated the patch (r45659) and my tests were successful.
Comment 13 Arvid Requate univentionstaff 2013-10-29 16:41:25 CET
Ok, univention-ad-takeover of SBS 2008 also worked without rejects.
Comment 14 Stefan Gohmann univentionstaff 2013-11-19 06:41:47 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

If this error occurs again, please use "Clone This Bug".
Comment 15 Arvid Requate univentionstaff 2016-05-23 12:24:41 CEST
*** Bug 29712 has been marked as a duplicate of this bug. ***
Comment 16 Stefan Gohmann univentionstaff 2016-10-11 07:14:16 CEST
*** Bug 32278 has been marked as a duplicate of this bug. ***