Bug 40767 - Builtin groups should not be selectable as primary groups (or controlable via UCRV)
Builtin groups should not be selectable as primary groups (or controlable via...
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-24 14:53 CET by Christina Scheinig
Modified: 2019-01-03 07:17 CET (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.171
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016021521000766, 2016011121000337, 2015121421000572, 2017011021000088
Bug group (optional): Error handling, External feedback, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2016-02-24 14:53:53 CET
currently it is possible to select the buildin group e.g. Nobody as primary group for a user. This causes the user not to be synchronized into samba4 because there is a UCRV setting that prohibits the synchronisation of such groups.
This should either not be possible or the visibility of the buildin groups  should be controlable via UCRV.

16.02.2016 11:25:23,220 LDAP        (PROCESS): sync from ucs: [          user] [    modify] cn=support,cn=users,DC=foo,DC=bar
16.02.2016 11:25:23,227 LDAP        (ERROR  ): sync_from_ucs: traceback during add object: cn=support,cn=users,DC=foo,DC=bar
16.02.2016 11:25:23,227 LDAP        (ERROR  ): sync_from_ucs: traceback due to addlist: [('objectClass', ['top', 'user', 'person', 'organizationalPerson']), ('s
AMAccountName', [u'support']), (u'displayName', [u'foo Support']), (u'sn', [u'Support']), (u'givenName', [u'foo']), ('primaryGroupID', ['548'])]
16.02.2016 11:25:23,229 LDAP        (WARNING): sync failed, saved as rejected
        /var/lib/univention-connector/s4/1455188216.857015
16.02.2016 11:25:23,229 LDAP        (WARNING): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 802, in __sync_file_from_ucs
    or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2419, in sync_from_ucs
    self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) #FIXME encoding
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 187, in add_ext_s
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 476, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 483, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
    result = func(*args,**kwargs)
UNWILLING_TO_PERFORM: {'info': 'Failed to find primary group with RID 548!', 'desc': 'Server is unwilling to perform'}
Comment 1 Stefan Gohmann univentionstaff 2016-10-05 10:47:07 CEST
Did it happened in a customer environment?
Comment 2 Christina Scheinig univentionstaff 2016-11-02 13:46:52 CET
Builtin groups cannot be set as primary group for users in Samba/AD.
I think umc should deny that.
Comment 3 Arvid Requate univentionstaff 2017-04-20 12:43:24 CEST
My impression is, that Active Directory only allows a users primary group to be a domain group from the same domain as the user:

================================================================================
A user's primary group must be a group that exists in the user's primary domain.

The SID for the primary group can be built by concatenating the domain RID with the primaryGroupID attribute of the user object.
================================================================================
source: https://support.microsoft.com/en-us/help/297951/how-to-use-the-primarygroupid-attribute-to-find-the-primary-group-for-a-user


That's why I think it's a UDM/UMC issue, not an issue that the connector could fix.
Comment 4 Stefan Gohmann univentionstaff 2019-01-03 07:17:57 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.