Univention Bugzilla – Bug 42181
UMC - make automatic substring search in UDM module configurable
Last modified: 2016-10-07 18:11:33 CEST
(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.
I modified the summary. The idea is to make the behaviour of the UDM module in UMC configurable. In large environments any search runs into an timeout if the substring search is done but the LDAP indices are optimized for EQ searches.
Created attachment 7999 [details] patch
@Daniel: Can you please test this patch. With this you can configure that UMC makes automatically substring searches by pre+appending '*' to the search value. > ucr set umc/auto_substring_search=false To completely disallow '*' in the search: > ucr set umc/allow_substring_search=false We need to find better names for the UCR variables. Probably replace "umc" with "directory/manager/web/".
(In reply to Florian Best from comment #3) > @Daniel: > Can you please test this patch. With this you can configure that UMC makes > automatically substring searches by pre+appending '*' to the search value. > > ucr set umc/auto_substring_search=false > > To completely disallow '*' in the search: > > ucr set umc/allow_substring_search=false > > We need to find better names for the UCR variables. Probably replace "umc" > with "directory/manager/web/". FYI. I tested the patch and it works. Thank you Florian.
univention-management-console-module-udm (4.0.99-11): r72569 | Bug #42181: make wildcard and substring search configurable univention-management-console-module-udm.yaml: r72570 | YAML Bug #42181 Bug #42379
[directory/manager/web/allow_wildcard_search] Definiert, ob Wildcards (*) in der Suche ausgewertet werden. Defines whether wildcards (*) are evaluated when searching. [directory/manager/web/auto_substring_search] Definiert, ob automatisch nach Teilstrings gesucht wird. Defines if it is searched automatically for substrings. It is not possible to have directory/manager/web/allow_wildcard_search=false and directory/manager/web/auto_substring_search=true. Otherwise I need to patch sanitizers.py, too. REOPEN if wished.
Changes: OK YAML file entry: OK → VERIFIED
<http://errata.software-univention.de/ucs/3.2/447.html>
*** Bug 30533 has been marked as a duplicate of this bug. ***