Fortinet white logo
Fortinet white logo

Administration Guide

Configuring LDAP attribute mapping for the address book

Configuring LDAP attribute mapping for the address book

You can import information in your directory server to create an address book on FortiMail. Before you do this, you must map LDAP attributes to the equivalent field of contacts in the FortiMail address book.

Note

Domain & User > Address Book > Contact and other related menus appear only if either:

  • in server mode
  • in gateway and/or transparent mode, if Email Continuity is enabled.

To configure an LDAP-to-address-book mapping

  1. If required, on your LDAP server, configure the schema so that it works with a FortiMail LDAP profile query. For details, see Preparing your LDAP schema for FortiMail LDAP profiles.

    Also test the query results. If it contains data that you do not want to import into the address book, then you must configure LDAP query filter later.

  2. Go to Domain & User > Address Book > LDAP Mapping.

  3. Either click New or double-click an entry to modify it.

  4. Configure the following:

    GUI item

    Description

    Mapping name

    Enter a unique name.

    Mapping content

    If you need to add a mapping, click the + button, and then configure Contact Field and LDAP Attribute.

    If you need to delete a mapping, select a mapping's checkbox, and then click the - button.

    Contact Field

    Select an attribute in FortiMail address book contacts (such as Email, First name, Last name, or Mobile) that you want to map to an LDAP attribute.

    Note: The Email attribute must be mapped.

    LDAP Attribute

    Select the name of the LDAP attribute on the directory server that corresponds to each Contact Field.

    For example, the cn (common name) attribute might be mapped to Display name, and the mail attribute might be mapped to Email.

    LDAP query filter

    If the query in the LDAP profile returns some results that you do not want to import into the address book, enter an LDAP query filter.

    For example, to select only results that have an email address, the filter might be:

    (mail=*)

  5. Click Create.

  6. To apply the LDAP attribute mapping, select it either while importing contacts, or in an address book synchronization task. For details, see Adding contacts to the address book and Synchronizing the address book via LDAP.

Configuring LDAP attribute mapping for the address book

Configuring LDAP attribute mapping for the address book

You can import information in your directory server to create an address book on FortiMail. Before you do this, you must map LDAP attributes to the equivalent field of contacts in the FortiMail address book.

Note

Domain & User > Address Book > Contact and other related menus appear only if either:

  • in server mode
  • in gateway and/or transparent mode, if Email Continuity is enabled.

To configure an LDAP-to-address-book mapping

  1. If required, on your LDAP server, configure the schema so that it works with a FortiMail LDAP profile query. For details, see Preparing your LDAP schema for FortiMail LDAP profiles.

    Also test the query results. If it contains data that you do not want to import into the address book, then you must configure LDAP query filter later.

  2. Go to Domain & User > Address Book > LDAP Mapping.

  3. Either click New or double-click an entry to modify it.

  4. Configure the following:

    GUI item

    Description

    Mapping name

    Enter a unique name.

    Mapping content

    If you need to add a mapping, click the + button, and then configure Contact Field and LDAP Attribute.

    If you need to delete a mapping, select a mapping's checkbox, and then click the - button.

    Contact Field

    Select an attribute in FortiMail address book contacts (such as Email, First name, Last name, or Mobile) that you want to map to an LDAP attribute.

    Note: The Email attribute must be mapped.

    LDAP Attribute

    Select the name of the LDAP attribute on the directory server that corresponds to each Contact Field.

    For example, the cn (common name) attribute might be mapped to Display name, and the mail attribute might be mapped to Email.

    LDAP query filter

    If the query in the LDAP profile returns some results that you do not want to import into the address book, enter an LDAP query filter.

    For example, to select only results that have an email address, the filter might be:

    (mail=*)

  5. Click Create.

  6. To apply the LDAP attribute mapping, select it either while importing contacts, or in an address book synchronization task. For details, see Adding contacts to the address book and Synchronizing the address book via LDAP.