Configuring LDAP User Email Addresses

Important: If you upgraded Forms 9.0 to 10, you'll need to edit several configuration files to tell Forms where to find email addresses for LDAP users. Use the following instructions to modify these files.

By default, Forms finds a user's mail attribute from the LDAP server and uses that as his email address. In some scenarios, you might want to use a different LDAP attribute to get user email addresses. The following example shows how to use the userPrincipalName attribute instead of the mail attribute as the source for LDAP account email addresses in Forms.

To change the LDAP user attribute that Forms uses to generate email addresses for LDAP users

  1. On the machine where Forms is installed, browse to C:\Program Files\Laserfiche\Laserfiche Forms\Forms and open the web.config file with a text editor.
  2. Under the <appSettings> node, locate the following line:

    <add key="PrimaryEmailAddress" value="mail" />

    Note: If you upgraded Forms 9.0 to 10, this line will not exist. Please add it.

    Locating the line in th XML file

  3. Change the value from mail to userPrincipalName.

    <add key="PrimaryEmailAddress" value="userPrincipalName" />

  4. Save and close the file.
  5. Browse to C:\Program Files\Laserfiche\Laserfiche Forms\Forms\bin and open RoutingEngineServiceHost.exe.config with a text editor.
  6. Under the <appSettings> node, locate the following line:

    <add key="PrimaryEmailAddress" value="mail" />

    Note: If you upgraded Forms 9.0 to 10, this line will not exist. Please add it.

    Locating the line in th XML file

  7. Change the value from mail to userPrincipalName.

    <add key="PrimaryEmailAddress" value="userPrincipalName" />

  8. Save and close the file.
  9. Forms will now use the userPrincipalName attribute for LDAP account email addresses.