Bug 42371 - schoolwizards/users/add: ldapError: Bad search filter
schoolwizards/users/add: ldapError: Bad search filter
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-13 12:44 CEST by Florian Best
Modified: 2019-02-05 21:49 CET (History)
0 users

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): 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-09-13 12:44:28 CEST
Version: 3.2-8 errata445 (Borgfeld)

Die Ausführung des Kommandos schoolwizards/users/add ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.6%/univention/management/console/modules/__init__.py", line 218, in execute
    func( request )
  File "%PY2.6%/ucsschool/lib/schoolldap.py", line 205, in wrapper_func
    return func( *args, **kwargs )
  File "%PY2.6%/univention/management/console/modules/schoolwizards/__init__.py", line 118, in _decorated
    ret = func(self, request, *a, **kw)
  File "%PY2.6%/univention/management/console/modules/schoolwizards/__init__.py", line 191, in _create_obj
    obj.validate(ldap_admin_write)
  File "%PY2.6%/ucsschool/lib/models/user.py", line 267, in validate
    if self.get_first_udm_obj(lo, '&(!(uid=%s))(mailPrimaryAddress=%s)' % (name, email)):
  File "%PY2.6%/ucsschool/lib/models/base.py", line 783, in get_first_udm_obj
    return cls.get_only_udm_obj(lo, filter_str, superordinate)
  File "%PY2.6%/ucsschool/lib/models/base.py", line 768, in get_only_udm_obj
    objs = udm_modules.lookup(cls._meta.udm_module, None, lo, scope='sub', base=ucr.get('ldap/base'), filter=str(filter_str), superordinate=superordinate)
  File "%PY2.6%/univention/admin/modules.py", line 801, in lookup
    tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit)
  File "%PY2.6%/univention/admin/handlers/users/user.py", line 2722, in lookup
    for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit):
  File "%PY2.6%/univention/admin/uldap.py", line 355, in search
    raise univention.admin.uexceptions.ldapError, _err2str(msg)
ldapError: Bad search filter
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2019-02-05 21:49:55 CET
This issue has been filled against UCS@school 3. The maintenance with
bug and security fixes for the last UCS@school version for UCS 3.x 
(→ UCS@school 3.2) has ended on Dec 31, 2016.

Customers still on UCS 3.x are encouraged to update to UCS 4.3 (or later). 
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.