ldap_write_support
ldap_write_support copied to clipboard
Add support for full contact info
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.
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.