ldap_write_support icon indicating copy to clipboard operation
ldap_write_support copied to clipboard

Add support for full contact info

Open Fmstrat opened this issue 2 years ago • 1 comments

This PR adds a listener for event changes beyond just display name and email to cover off on contact fields. It leverages the GenericEvent response on the OC\AccountManager::userUpdated to map event arguments to LDAP/AD fields.

Event argument LDAP/AD field
phone telephoneNumber
address l
website wWWHomePage
organisation department
role title
biography description

I have tested this fairly extensively against a Samba 4 AD/LDAP setup.

If time permits I will be looking into the LDAP backend for querying this data on first user pull as well.

Fmstrat avatar May 25 '23 21:05 Fmstrat

This would require a configuration system for mapped fields, otherwise it is too specific to your setup. Also GenericEvent but maybe core does not offer anything else for this, I did not check.

come-nc avatar Dec 18 '23 16:12 come-nc