Bug 55356 - ldapError: Bad search filter with duplicated **
ldapError: Bad search filter with duplicated **
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-10-27 17:58 CEST by Mika Westphal
Modified: 2023-07-28 14:19 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: 2022101621000282, 2022101121000201, 2023072421000477, 2023072421000468, 2023072421000226
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 Mika Westphal univentionstaff 2022-10-27 17:58:54 CEST
Version: 5.0-2 errata460

Error:
Internal server error during "udm/query (groups/group)".
Request: udm/query (groups/group)

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 612, in _thread
    result = module.search(container, objectProperty, objectPropertyValue, superordinate, scope=scope, hidden=hidden, allow_asterisks=USE_ASTERISKS)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 686, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container, superordinate=superordinate, scope=scope, sizelimit=sizelimit, **kwargs)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1791, in lookup
    for dn, attrs in lo.search(filter_str, base, scope, attr, unique, required, timeout, sizelimit, serverctrls=serverctrls, response=response):
  File "%PY3%/univention/admin/uldap.py", line 682, in search
    raise univention.admin.uexceptions.ldapError('%s: %s' % (_err2str(msg), filter))
univention.admin.uexceptions.ldapError: Bad search filter: No such file or directory:
(&(cn=*)(|(&(objectClass=univentionGroup))(&(objectClass=sambaGroupMapping)))(&(!(univentionObjectFlag=hidden))(|(|(cn=**)(cn=))(|(description=**)(description=))(|(mailPrimaryAddress=**)(mailPrimaryAddress=)))))

Role: domaincontroller_master
There was no ascii character. I removed these
Comment 1 Mika Westphal univentionstaff 2022-10-28 10:21:53 CEST
Reported again
Version: 5.0-2 errata454

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

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 612, in _thread
    result = module.search(container, objectProperty, objectPropertyValue, superordinate, scope=scope, hidden=hidden, allow_asterisks=USE_ASTERISKS)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 686, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container, superordinate=superordinate, scope=scope, sizelimit=sizelimit, **kwargs)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1791, in lookup
    for dn, attrs in lo.search(filter_str, base, scope, attr, unique, required, timeout, sizelimit, serverctrls=serverctrls, response=response):
  File "%PY3%/univention/admin/uldap.py", line 682, in search
    raise univention.admin.uexceptions.ldapError('%s: %s' % (_err2str(msg), filter))
univention.admin.uexceptions.ldapError: Bad search filter: No such file or directory:
(&(univentionObjectType=users/user)(!(uidNumber=0))(!(univentionObjectFlag=functional))(&(!(univentionObjectFlag=hidden))(|(|(uid=*---*)(uid=***))(|(givenName=*---*)(givenName=***))(|(sn=*---*)(sn=***))(|(description=*---*)(description=***))(|(employeeNumber=*---*)(employeeNumber=***))(|(mailPrimaryAddress=**)(mailPrimaryAddress=)))))

Role: domaincontroller_master
Comment 2 Mika Westphal univentionstaff 2023-07-28 14:15:38 CEST
2023072421000477
Version: 5.0-4 errata750
Role: domaincontroller_master