Bug 52735

Summary: S4-Connector: Mark single_value attributes programmatically
Product: UCS Reporter: Florian Best <best>
Component: S4 ConnectorAssignee: Samba maintainers <samba-maintainers>
Status: RESOLVED MOVED QA Contact: Samba maintainers <samba-maintainers>
Severity: normal    
Priority: P5 CC: best, requate, steuwer
Version: UCS 5.0Flags: best: Patch_Available+
Target Milestone: UCS 5.0-0-errata   
Hardware: Other   
OS: Linux   
URL: https://git.knut.univention.de/univention/ucs/-/merge_requests/340
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=18501
https://forge.univention.org/bugzilla/show_bug.cgi?id=52801
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: 0.171 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 Florian Best univentionstaff 2021-02-01 20:53:24 CET
git:c0e6de184f5c309c712087d050fb817e83bc258f
    Bug #18501: Mark single_value attributes programmatically

changed the mapping so that one doesn't need to declare single_value=True/False anymore.

This could be done accordingly in the S4-Connector.

+++ This bug was initially created as a clone of Bug #18501 +++
Comment 1 Florian Best univentionstaff 2021-02-01 21:00:15 CET
Patch in git:fbest/52735-s4c-single-value.

This changes the following attributes:

mapping_key, mapping_attr, value_before =
('user', 'userCertificate', True)
('user', 'jpegPhoto', True)
('user', 'preferredDeliveryMethod', True)
#('dc', 'description', True)
#('msGPO', 'description', True)
#('msWMIFilter', 'description', True)
('msWMIFilter', 'flags1', True)
('msWMIFilter', 'flags2', True)
('msWMIFilter', 'flags3', True)
('msWMIFilter', 'flags4', True)
#('msPrintConnectionPolicy', 'description', True)
#('ms/gpwl-wireless', 'description', True)
#('ms/gpwl-wired', 'description', True)
#('ms/gpwl-wireless-blob', 'description', True)
#('container', 'description', True)
('ou', 'ou', True)
#('ou', 'description', True)

description is not flagged as single value in the LDAP schema search result. We should probably set all description attributes to single_value.