Bug 38956

Summary: Count valid group members in app reporting
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: App CenterAssignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Dirk Wiesenthal <wiesenthal>
Severity: normal    
Priority: P5    
Version: UCS 4.0   
Target Milestone: UCS 4.0-2-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- 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 Stefan Gohmann univentionstaff 2015-07-17 22:45:14 CEST
Currently, it is possible to count the valid users, for example:
appreport/apptest/object_type = users/user
appreport/apptest/ldap_filter= '(&((apptestEnabled=1)(!(disabled=all)))'

It should also be possible to count the valid users of a list of groups, for example:
appreport/apptest/groupmember_search = group1,group2
Comment 1 Florian Best univentionstaff 2015-07-24 14:46:35 CEST
Implemented appreport/apptest/groupmember_search = group1,group2.

It internally rewrites the variable to:
appreport/apptest/object_filter='(|(name=group1)(name=group2))'
appreport/apptest/object_attribute='uniqueMember'

Additionally the following has been added, too:
appreport/apptest/attribute_type=users/user
appreport/apptest/attribute_filter='(!(disabled=all))'

→ This filters the attributes found via object_attribute against the filter and object type by treating the attribute as the DN of the object.

univention-appreport (1.0.1-1):
r62400 | Bug #38956: Count valid group members
Comment 2 Dirk Wiesenthal univentionstaff 2015-07-31 16:33:57 CEST
Code: OK
YAML: Not needed
Comment 3 Dirk Wiesenthal univentionstaff 2015-08-03 11:55:05 CEST
Announced