Bug 51855 - udm/put (users/user): TypeError: crypt() argument 1 must be string without null bytes, not str
udm/put (users/user): TypeError: crypt() argument 1 must be string without nu...
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-20 12:08 CEST by Christian Castens
Modified: 2020-08-20 12:16 CEST (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: 2020060321000773
Bug group (optional): Error handling
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2020-08-20 12:08:04 CEST
Version: 4.4-3 errata456 (Blumenthal)

Internal server error during "udm/put (users/user)".
Request: udm/put (users/user)

  File "/usr/lib/python2.7/dist-packages/notifier/threads.py", line 80, in _run
    result = self._function()
  File "/usr/lib/python2.7/dist-packages/notifier/__init__.py", line 104, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/__init__.py", line 440, in _thread
    module.modify(properties)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 645, in modify
    obj.modify()
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/users/user.py", line 1433, in modify
    return super(object, self).modify(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 651, in modify
    dn = self._modify(modify_childs, ignore_license=ignore_license, response=response)
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 1322, in _modify
    ml = self._ldap_modlist()
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/users/user.py", line 1716, in _ldap_modlist
    ml = self._modlist_posix_password(ml)
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/users/user.py", line 1948, in _modlist_posix_password
    password_crypt = univention.admin.password.lock_password(password)
  File "/usr/lib/python2.7/dist-packages/univention/admin/password.py", line 206, in lock_password
    return "{crypt}!%s" % (univention.admin.password.crypt(password))
  File "/usr/lib/python2.7/dist-packages/univention/admin/password.py", line 91, in crypt
    return crypt.crypt(password.encode('utf-8'), '$%s$%s$' % (method_id, salt, ))
TypeError: crypt() argument 1 must be string without null bytes, not str

Role: domaincontroller_master