Scenario
Additional attributes like an employeeNumber for users or the displayName of groups need to be synced by the AD-Connector.
Recommendation
To map additional attributes you can define a mapping hook inside the (newly to be created) file /etc/univention/connector/ad/localmapping.py
like this:
import univention.connector
def mapping_hook(ad_mapping):
ad_mapping['user'].post_attributes['employeeNumber'] = \
univention.connector.attribute(
ucs_attribute='employeeNumber',
ldap_attribute='employeeNumber',
con_attribute='employeeNumber'
)
ad_mapping['group'].attributes['displayName'] = \
univention.connector.attribute(
ucs_attribute='DisplayName',
ldap_attribute='displayName',
con_attribute='displayName'
)
return ad_mapping
where the ucs_attribute
represents the UDM name and con_attribute
the AD name.
Further reading
- Problem: Additional attributes need to be synced by the AD-Connector
- Install Active Directory Domain Services on Windows Server 2019
- Connect UCS to existing AD Domain
- Manual entry for localmapping.py
Questions?
If you’re not sure whether the recommendations will fit into your scenario, please ask your Professional Services contact person, or create a new topic referencing this article.