Bug 46040 - ox-user listener should use --email2 und --email3 for mailAlternativeAddresses
ox-user listener should use --email2 und --email3 for mailAlternativeAddresses
Status: NEW
Product: Z_Internal OX development
Classification: Unclassified
Component: Listener
UCS 4.4 / 7.10.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-15 13:55 CET by Daniel Tröder
Modified: 2021-05-14 17:00 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018010921000276
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 Daniel Tröder univentionstaff 2018-01-15 13:55:29 CET
Currently the ox user listener stores mailAlternativeAddresses only in OX' --alias field. The UI won't show those addresses in either the address book or the autocompletion of the mail-compose window.

The ox-user listener should use --email2 und --email3 for mailAlternativeAddresses.

Two problems cannot be solved (AFAIK):

* if more than 2 mailAlternativeAddresses exist, only 2 of them can be set with the CLI/HTTP/SOAP
* the order in which mailAlternativeAddresses are read from LDAP may differ to that shown in UMC
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2018-01-16 11:34:17 CET
--email2 and --email3 are currently mapped via extended attributes to "E-Mail privat" and "E-Mail weitere" in UDM.

./univention-ox/share/attrlist.csv:"oxUserObject","users/user","oxEmail2","oxEmail2","Email private","Email private","E-Mail privat","E-Mail privat","Contact","Kontakt",0,0,"oxEmail2","emailAddress",0,,1,0,1,"None",17,"None",0,0,"--email2","Email2","Private","Privat",,,
./univention-ox/share/attrlist.csv:"oxUserObject","users/user","oxEmail3","oxEmail3","Email other","Email other","E-Mail weitere","E-Mail weitere","Contact other","Kontakt Weiteres",0,0,"oxEmail3","emailAddress",1,,1,0,1,"None",9,"None",0,0,"--email3","Email3",,,,,

Did we missed a change in the purpose of those CLI arguments (--email2/3)?
Comment 2 Daniel Tröder univentionstaff 2018-01-16 11:49:57 CET
For the customers purpose I can imagine two possible solutions:
* a UDM hook could copy the contents of mailAlternativeAddress to oxEmail2 and oxEmail3
* the customer uses ox/listener/user/ldap/attributes/mapping/ldap2ox to map the 1st mailAlternativeAddress to oxEmail2. I don't see how a 2nd mailAlternativeAddress could be mapped to oxEmail3 with this method, though.

The 1st solution would need a handling for manually modified oxEmail2/3 fields. Not as complicated as with oxDisplayName, because no default handling is required.
Comment 3 Ingo Steuwer univentionstaff 2021-05-14 17:00:47 CEST
should be still relevant for UCS 4.4 / OX 7.10