Bug 41732 - Creating a memberserver without posix causes errors
Creating a memberserver without posix causes errors
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-05 16:37 CEST by Florian Best
Modified: 2019-01-03 07:21 CET (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few 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.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-07-05 16:37:27 CEST
Creation:
Version: 4.1-2 errata175 (Vahr)

Execution of command 'udm/add computers/computer' has failed:

Traceback (most recent call last):
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 364, in _thread
    dn = module.create(properties, container=options.get('container'), superordinate=options.get('superordinate'))
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 85, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 135, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 381, in create
    obj.create()
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 351, in create
    return self._create()
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 724, in _create
    al=self._ldap_addlist()
  File "%PY2.7%/univention/admin/handlers/computers/memberserver.py", line 534, in _ldap_addlist
    self.machineSid='S-1-4-%s' % self.uidNum
AttributeError: 'object' object has no attribute 'uidNum'


Modification:
Version: 4.1-2 errata197 (Vahr)

Remark: Created a member-server with all options (Samba,Kerberos,Posix) disabled.
Than edited and only enabled Samba.
Than save

Execution of command 'udm/put computers/computer' has failed:

Traceback (most recent call last):
  File "%PY2.7%/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 402, in _thread
    module.modify(properties)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 85, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 135, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 441, in modify
    obj.modify()
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 361, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 768, in _modify
    ml = self._ldap_modlist()
  File "%PY2.7%/univention/admin/handlers/computers/memberserver.py", line 662, in _ldap_modlist
    self.machineSid='S-1-4-%s' % self.oldattr['uidNumber'][0]
KeyError: 'uidNumber'

We should enforce some options to be set.
Comment 1 Stefan Gohmann univentionstaff 2019-01-03 07:21:01 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.