Univention Bugzilla – Bug 42388
UCS 4.1: UMC - make automatic substring search in UDM module configurable
Last modified: 2016-12-06 17:04:07 CET
Merge to UCS 4.1:
+++ This bug was initially created as a clone of Bug #42181 +++
(in UCS 3.X) UMC assumes all searches as subtring.
(in UCS 4.1) In Bug #37904 EQ search is added to the default search filter.
For simple purposes, a backport to UCS 3.X of Bug #37904 is enough, but I would add options so that the user can specify the form of search they desire (eg: according to the indices they have defined in slapd.conf) and not only EQ and SUBSTR.
+++ This bug was initially created as a clone of Bug #37904 +++
Noted during a technical training: It's not possible to search by GID:
- Open the "Groups" module in the UMC
- Select "Advanced Options" and the property "Group ID"
- Enter thr GID of an existing group (e.g. 5001 which is usually Domain Users")
-> No result in found.
r72580 | Bug #42388: make wildcard and substring search configurable
r72581 | YAML Bug #42388 Bug #42386
r72578 | Bug #42388: make wildcard and substring search configurable
YAML file: OK, fixed typo in bug list [r72679]
2 new UCR variables were added, which are documented very sparsely and not referenced by either this bug nor the linked errata description. So here's the missing documentation:
By default '*' gets added at the beginning and at the end of every search value converting it automatically to a sub-string search.
This breaks LDAP attributes which have no SUBSTR search defined, e.g.
univention-ldapsearch -LLLo ldif-wrap=no -s base -b cn=Subschema attributeTypes | grep -v SUBSTR
Therefore this can be disabled by setting it explicitly to 'false'.
This setting can be used to disable wildcard search completely.
Substring searches are a lot more expensive in large environments.
If explicitly set to 'false', '*' is escaped and thus handled as a normal character.