#2388 [RFE] Filter for searches needs to be field specific
Closed: wontfix 5 years ago Opened 12 years ago by admiyo.

The filter field currently matches on any of the fields. However, the quantity of information coming back from the searches makes this inadequate. The first step in scoping down the results returned is to be able to specify values for certain fields.

This is probably most required on users, but with Virtualization, it is likely that the quantity of hosts will be the dominant use case requiring better filters.


What filter field is this? Can you provide some examples?

DNS: filtering records by type
Users: applying filters to only First or last name

I'm still in the dark. What filter field matches any of the fields? Is this only in the WebUI or on the command-line as well?

Is this filters for permissions or filtering users in a find command?

See related thread on freeipa-users. I had an idea to implement advanced Web UI search using "search tags":

The API and the mighty LDAP search engine is already there:

ipa user-add --first=Test --last=User manager
ipa user-add --first=Test --last=User employee --manager manager
ipa user-add --first=Test --last=User employee2 --manager manager
ipa group-add testgroup --desc test
ipa group-add-member testgroup --users employee2


# ipa user-find --manager manager --pkey-only
---------------
2 users matched
---------------
  User login: employee

  User login: employee2
----------------------------
Number of entries returned 2
----------------------------

# ipa user-find --manager manager --in-group testgroup --pkey-only
--------------
1 user matched
--------------
  User login: employee2
----------------------------
Number of entries returned 1


So we would just need to utilize it in our Web UI. I personally really like the
simple search tags like below

  <manager: manager X>  <in groups: testgroup X>

that can be seen in some web apps or eshops and which are pretty easy to control.

The ability to use elasticsearch-style filters in the WebUI would be great for large estates. Looking at the Foreman UI as an example, detailed filters can be used in the Hosts screen, but the user can also enter vague filters that will match against any field displayed.

This may not be possible using the current CLI search tools.

Too late to be included in 4.2 - moving to later release.

Metadata Update from @admiyo:
- Issue assigned to pvoborni
- Issue set to the milestone: FreeIPA 4.5 backlog

7 years ago

Metadata Update from @pvomacka:
- Issue close_status updated to: None
- Issue tagged with: webui

6 years ago

Thank you taking time to submit this request for FreeIPA. Unfortunately this bug was not given priority and the team lacks the capacity to work on it at this time.

Given that we are unable to fulfil this request I am closing the issue as wontfix. To request re-consideration of this decision please reopen this issue and provide additional technical details about its importance to you.

Metadata Update from @rcritten:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata