Bug 23441 - not possible to filter for service (univentionService) attribute
not possible to filter for service (univentionService) attribute
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-29 08:55 CEST by Arvid Requate
Modified: 2023-03-25 06:46 CET (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
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:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2011-08-29 08:55:25 CEST
root@master:~# udm computers/domaincontroller_master --filter service="Samba 4"
WARNING: the following arguments are ignored: "service=Samba 4"
Unknown or no action defined
Comment 1 Stefan Gohmann univentionstaff 2011-08-29 09:03:59 CEST
Per default muss das LDAP Attribut verwendet werden, alternativ kann die Suche in 
 def rewrite(filter, mapping)
entsprechend angepasst werden, siehe beispielsweise users/user.py

udm computers/domaincontroller_master list --filter univentionService="Samba 4"
Comment 2 Arvid Requate univentionstaff 2011-08-29 09:59:11 CEST
Meiner Meinung nach sollte udm nach UDM Properties suchen.
Comment 3 Stefan Gohmann univentionstaff 2011-08-29 10:23:45 CEST
(In reply to comment #2)
> Meiner Meinung nach sollte udm nach UDM Properties suchen.

Ja, wie geschrieben, dass muss definiert werden.

Das wurde bisher nicht gemacht, da die generische Variante erfordert, dass die Objekte das open durchlaufen müssen. Das könnte in grossen Umgebungen  problematisch werden.
Comment 4 Arvid Requate univentionstaff 2011-08-29 10:25:55 CEST
Ok, dann worksforme.
Comment 5 Stefan Gohmann univentionstaff 2011-08-29 10:44:56 CEST
Wir sollten das ermöglichen. Ggf. kann man pro Attribut entscheiden, ob das open notwendig ist. Auch könnte Bug #23115 einen Teil des Performance-Problems lösen.
Comment 6 Florian Best univentionstaff 2017-07-11 17:25:32 CEST
Works:

# udm computers/domaincontroller_master list --filter service="SMTP" | grep ^DN:
DN: cn=xen3,cn=dc,cn=computers,dc=school,dc=local
Comment 7 Arvid Requate univentionstaff 2017-07-11 21:24:38 CEST
Indeed, my first attempt just missed the "list" command:


root@master10:~# udm computers/domaincontroller_master list \
                 --filter service="Samba 4" | grep ^DN:
DN: cn=master10,cn=dc,cn=computers,dc=ar41i1,dc=qa