Bug 48725 - mailAlternativeAddress (smtp:aaa@...) not synced from AD to UCS
mailAlternativeAddress (smtp:aaa@...) not synced from AD to UCS
Status: VERIFIED WORKSFORME
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on: 43216
Blocks:
  Show dependency treegraph
 
Reported: 2019-02-21 13:13 CET by Felix Botner
Modified: 2021-01-18 22:21 CET (History)
1 user (show)

See Also:
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:
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 Felix Botner univentionstaff 2019-02-21 13:13:08 CET
UCS 4.4-0 with univention-ad-connector and 
  connector/ad/mapping/user/primarymail=yes
Windows 2012

smtp:...@... added to an user object in AD via LDAP attribute editor, but this does not show up as mailAlternativeAddress in UCS (as it should be)

-> ldapsearch -h WIN-M1LHUHEJFSI.w2k12.test -D cn=Administrator,cn=Users,dc=w2k12,dc=test -x -w Univention.99 cn=fb1| grep pro
proxyAddresses: smtp:dsfdsf@w2k12.test
proxyAddresses: smtp:fb1234@w2k12.test
proxyAddresses: smtp:hans@w2k12.test
proxyAddresses: SMTP:fb12@w2k12.test

-> univention-ldapsearch uid=fb1| grep -i mail
objectClass: univentionMail
mailPrimaryAddress: fb12@w2k12.test
Comment 1 Felix Botner univentionstaff 2019-02-21 13:17:04 CET
The other direction works (UCS -> AD)

-> ldapsearch -h WIN-M1LHUHEJFSI.w2k12.test -D cn=Administrator,cn=Users,dc=w2k12,dc=test -x -w Univention.99 cn=fb1| grep pro
proxyAddresses: SMTP:fb12@w2k12.test

-> udm users/user modify --dn uid=fb1,dc=w2k12,dc=test --append mailAlternativeAddress=fbb12@w2k12.test

->ldapsearch -h WIN-M1LHUHEJFSI.w2k12.test -D cn=Administrator,cn=Users,dc=w2k12,dc=test -x -w Univention.99 cn=fb1| grep pro
proxyAddresses: smtp:fbb12@w2k12.test
proxyAddresses: SMTP:fb12@w2k12.test
Comment 2 Arvid Requate univentionstaff 2019-02-21 13:59:17 CET
connector/ad/mapping/user/alternativemail was not set on your test vm, which would be set by installing univention-ad-connector-exchange, see Bug #43216.
Comment 3 Felix Botner univentionstaff 2019-02-21 15:57:44 CET
(In reply to Arvid Requate from comment #2)
> connector/ad/mapping/user/alternativemail was not set on your test vm, which
> would be set by installing univention-ad-connector-exchange, see Bug #43216.

yes, with 

univention-config-registry set
 connector/ad/mapping/user/primarymail?true                 
 connector/ad/mapping/group/primarymail?true                 
 connector/ad/mapping/user/alternativemail?true                 
 connector/ad/mapping/group/alternativemail?true                 
 connector/ad/mapping/user/exchange?true                 
 connector/ad/mapping/group/exchange?true

the synchronization works in both directions.