Bug 25855 - Löschen von Gruppenmitglieder bei nicht übereinstimmender Groß/Kleinschreibung
Löschen von Gruppenmitglieder bei nicht übereinstimmender Groß/Kleinschreibung
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 3.0
Other Linux
: P2 normal (vote)
: UCS 3.0-1
Assigned To: Connector maintainers
Felix Botner
:
Depends on: 25838
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-17 11:12 CET by Andreas Büsching
Modified: 2012-03-04 14:34 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): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Büsching univentionstaff 2012-01-17 11:12:07 CET
Dieses Problem wird für memberUid im UDM Code korrigiert. Für uniqueMember besteht das problem ebenfalls. Dies sollte allerdings in den Anwendungen korrigiert werden, da es die API für den UDM sonst verändern würde.

+++ This bug was initially created as a clone of Bug #25838 +++

Bei folgender Gruppe

# test, groups, update.test
dn: cn=test,cn=groups,dc=update,dc=test
sambaGroupType: 2
cn: test
objectClass: top
objectClass: posixGroup
objectClass: univentionGroup
objectClass: sambaGroupMapping
objectClass: univentionObject
univentionObjectType: groups/group
gidNumber: 5014
sambaSID: S-1-5-21-2796199546-1396784971-2706387774-11029
uniqueMember: uid=Administrator,cn=users,dc=update,dc=test
memberUid: administrator


kann der Administrator nicht gelöscht werden, da administrator im Attribute
memberUid kleingeschrieben wird.


root@master:~# udm groups/group modify --dn cn=test,cn=groups,dc=update,dc=test
--remove users="uid=Administrator,cn=users,dc=update,dc=test"
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server",
line 233, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 939,
in doit
    dn=object.modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py",
line 344, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py",
line 863, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 385, in
modify
    raise univention.admin.uexceptions.ldapError, _err2str(msg)
ldapError: No such attribute: modify/delete: memberUid: no such value

Ändert man administrator in Administrator funktioniert es wieder:

root@master:~# udm groups/group modify --dn cn=test,cn=groups,dc=update,dc=test
--remove users="uid=Administrator,cn=users,dc=update,dc=test"
Object modified: cn=test,cn=groups,dc=update,dc=test
Comment 1 Stefan Gohmann univentionstaff 2012-02-08 08:03:07 CET
Im AD und S4 Connector kann ich mit 3.0-1 kein Problem mehr feststellen.
Comment 2 Felix Botner univentionstaff 2012-02-20 09:41:09 CET
Funktioniert

-> univention-ldapsearch  cn=testgroup
dn: cn=testgroup,dc=ff,dc=gg
sambaGroupType: 2
cn: testgroup
objectClass: top
objectClass: posixGroup
objectClass: univentionGroup
objectClass: sambaGroupMapping
objectClass: univentionObject
univentionObjectType: groups/group
gidNumber: 5039
sambaSID: S-1-5-21-3924820788-952401084-2473915625-11079
uniqueMember: uid=Administrator,cn=users,dc=ff,dc=gg
memberUid: administrator

-> udm groups/group modify --dn cn=testgroup,dc=ff,dc=gg \
--remove users=uid=Administrator,cn=users,dc=ff,dc=gg
Object modified: cn=testgroup,dc=ff,dc=gg

-> univention-ldapsearch  cn=testgroup
dn: cn=testgroup,dc=ff,dc=gg
sambaGroupType: 2
cn: testgroup
objectClass: top
objectClass: posixGroup
objectClass: univentionGroup
objectClass: sambaGroupMapping
objectClass: univentionObject
univentionObjectType: groups/group
gidNumber: 5039
sambaSID: S-1-5-21-3924820788-952401084-2473915625-11079
Comment 3 Felix Botner univentionstaff 2012-02-20 09:44:58 CET
AD und S4 Connector.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2012-03-04 14:34:34 CET
UCS 3.0-1 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert
werden: "Clone This Bug"