Bug 23441

Summary: not possible to filter for service (univentionService) attribute
Product: UCS Reporter: Arvid Requate <requate>
Component: UDM (Generic)Assignee: UMC maintainers <umc-maintainers>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P5 CC: best, gohmann
Version: UCS 4.2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=40740
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:

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