Univention Bugzilla – Bug 32167
Search for UDM attributes with fixed values (displayed as combo box/check box) not possible
Last modified: 2018-10-04 10:04:04 CEST
e.g. the open-xchange app adds an udm attribute oxAccessUSM (syntax OkOrNot). I can select this attribute ("Allow mobility access") in the users search dialog as property but always get zero results (no matter if the checkbox is selected or not) Ticket: 2013080121004087
Workaround: UDM search -> udm users/user list --filter oxAccessUSM=OK| grep '^DN' DN: uid=test2,cn=users,dc=fff,dc=ggg -> udm users/user list --filter oxAccessUSM=Not| grep '^DN' DN: uid=test1,cn=users,dc=fff,dc=ggg
*** Bug 32473 has been marked as a duplicate of this bug. ***
*** Bug 34204 has been marked as a duplicate of this bug. ***
*** Bug 34494 has been marked as a duplicate of this bug. ***
Ticket#: 2014072421000332 Reported again in form of "search filter for locked accounts does not work" Maybe we should just disable the options that do not work for now?
For account locking/locked login, even the udm cli filter does not seem to work correctly: root@master:~# udm users/user list | grep locked -c 16 root@master:~# udm users/user list --filter locked=none | grep ^DN -c 14 root@master:~# udm users/user list --filter locked=all | grep ^DN -c 2 root@master:~# udm users/user list --filter locked=windows | grep ^DN -c 2 root@master:~# udm users/user list --filter locked=posix | grep ^DN -c 0 root@master:~# udm users/user list | grep locked locked: none locked: none locked: none locked: none locked: none locked: none locked: posix locked: none locked: none locked: none locked: windows locked: none locked: none locked: none locked: none locked: all
*** Bug 47211 has been marked as a duplicate of this bug. ***
The problem is that the search function right now only searches for the values 'true' and 'false', while the backend stores the values according to the udm syntaxes: ( 'OkOrNot': 'OK' - 'Not' 'TrueFalseUp': 'TRUE' - 'FALSE' 'boolean': '1' - '0' ) There is a fix for this in branch jahlers/32167-udm-search-boolean which simply replaces the checkboxes in udm search with dropdown menues. Unfortunately this doesn't work for the boolean syntax due to bug #47364.
I send a pull request which enhances this handling. I think it can easily be adapted so that all checkbox-syntax-class values are correctly mapped (instead of adding a not so nice drop down menu).
(In reply to Florian Best from comment #9) > I send a pull request which enhances this handling. I think it can easily be > adapted so that all checkbox-syntax-class values are correctly mapped > (instead of adding a not so nice drop down menu). The pull request has been implemented with Bug #40672. It has been adapted with commit 31f894ee7e658948d4b042ba144c6ff11f83a422 to include all boolean syntax classes.
So... this is more a duplicate of Bug#40672? Because I cannot see any changes made for this bug nor do I see something in the YAML files. It seems as if any change related to this bug was reverted with the bug mentioned above.
I think the target milestone is wrong. Can you check this?
(In reply to Florian Best from comment #9) > I send a pull request which enhances this handling. I think it can easily be > adapted so that all checkbox-syntax-class values are correctly mapped > (instead of adding a not so nice drop down menu). The pull request has been implemented with Bug #40672. It has been adapted with commit 1587325369a81ae311ef195e054d1c4907b62815 to include all boolean syntax classes.
Duplicate of Bug#40672 *** This bug has been marked as a duplicate of bug 40672 ***