Bug 23561 - extended attributes ändern immer die (Reihenfolge von) objectClass
extended attributes ändern immer die (Reihenfolge von) objectClass
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Stefan Gohmann
Sönke Schwardt-Krummrich
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-08 17:10 CEST by Ingo Steuwer
Modified: 2012-12-12 21:10 CET (History)
1 user (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

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2011-09-08 17:10:50 CEST
Bei einer Umgebung mit extended Attributes an computers/windows fiel auf, dass eine einfache Änderung (hier: univentionWindowsReinstall) immer auch einer Änderung des Attributs objectClass generiert, dabei wird nur die Reihenfolge verändert. Das verhindert die Definition von restriktiven LDAP-ACLs.

Wahrscheinlich sind alle UDM-Module betroffen.

Beispiel:

# diff testw01_initial.ldif testw01_reinstall.ldif 
12,17d11
< objectClass: top
< objectClass: univentionHost
< objectClass: univentionWindows
< objectClass: posixAccount
< objectClass: person
< objectClass: sambaSamAccount
25a20,26
> univentionWindowsReinstall: 1
> objectClass: top
> objectClass: univentionHost
> objectClass: sambaSamAccount
> objectClass: person
> objectClass: univentionWindows
> objectClass: posixAccount
Comment 1 Ingo Steuwer univentionstaff 2011-09-08 17:11:34 CEST
Aufgefallen an Ticket 2011050910005547
Comment 2 Stefan Gohmann univentionstaff 2012-07-17 17:09:49 CEST
UCS 3.1 will be the next release.
Comment 3 Stefan Gohmann univentionstaff 2012-09-05 08:15:21 CEST
Nach Rücksprache mit Kevin tritt das Problem auf, wenn zwei Extended Attributes gesetzt werden.

Ich konnte es aber bisher nicht reproduzieren:

DN: cn=test1,cn=custom attributes,cn=univention,dc=deadlock5,dc=local
ARG: None
  objectClass: univentionFreeAttributes
  groupPosition: None
  module: computers/windows
  overwritePosition: None
  hook: None
  overwriteTab: 0
  shortDescription: test1
  groupName: None
  version: 2
  valueRequired: 0
  CLIName: test1
  fullWidth: 0
  longDescription: Test1
  doNotSearch: 0
  tabName: Test1
  syntax: string
  tabAdvanced: 0
  name: test1
  default: None
  mayChange: 1
  multivalue: 0
  ldapMapping: univentionFreeAttribute1
  deleteObjectClass: 0
  notEditable: 0
  options: None
  tabPosition: 1
  disableUDMWeb: 0

DN: cn=test2,cn=custom attributes,cn=univention,dc=deadlock5,dc=local
ARG: None
  objectClass: univentionFreeAttributes
  groupPosition: None
  module: computers/windows
  overwritePosition: None
  hook: None
  overwriteTab: 0
  shortDescription: test2
  groupName: None
  version: 2
  valueRequired: 0
  CLIName: test2
  fullWidth: 0
  longDescription: Test2
  doNotSearch: 0
  tabName: Test2
  syntax: string
  tabAdvanced: 0
  name: test2
  default: None
  mayChange: 1
  multivalue: 0
  ldapMapping: univentionFreeAttribute2
  deleteObjectClass: 0
  notEditable: 0
  options: None
  tabPosition: 1
  disableUDMWeb: 0

Ich habe dann einen Windows Rechner angelegt und dort die beiden Attribute gesetzt. Vor die "access to *" Regel habe ich folgendes eingefügt:
access to dn="cn=win1,cn=computers,dc=deadlock5,dc=local" attrs=univentionOperatingSystemVersion
    by dn.base="cn=admin,dc=deadlock5,dc=local" write
    by dn.base="uid=Administrator,cn=users,dc=deadlock5,dc=local" write

access to dn="cn=win1,cn=computers,dc=deadlock5,dc=local"
    by dn.base="cn=admin,dc=deadlock5,dc=local" write
    by dn.base="uid=Administrator,cn=users,dc=deadlock5,dc=local" read


Dadurch kann Administrator nur noch das Attribut univentionOperatingSystemVersion ändern. Das funktioniert über den UDM problemlos. Auch wenn Administrator zusätzlich noch univentionFreeAttribute2 ändern darf geht das ohne Probleme.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2012-09-13 16:12:27 CEST
Konnte das Problem ebenfalls nicht nachstellen. Getestet wurde mit 2 Extended Attributes mit unterschiedlichen Attributen und Objektklassen. Die Objektklassen "univentionFreeAttributes" und "univentionTestAttributes" sind nicht Bestandteil des Objektes gewesen.
Die Checkbox "Objektklasse löschen" hat keine Auswirkungen auf das Verhalten gezeigt.
Das Setzen eines oder beider ExtAttributes oder eines anderen Werts hat die Objektklasse nicht beeinflusst. Dies wurde durch zusätzliche LDAP-ACLs verifiziert.

Changelogeintrag nicht notwendig
→ Verified
Comment 5 Stefan Gohmann univentionstaff 2012-12-12 21:10:04 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".