Windows (Kerberos) Authentication

Use this topic as a checklist to correctly configure Mail Express so that Internal users can authenticate with the Mail Express Server using integrated Windows Authentication. The benefits of using Windows Authentication as it pertains to Mail Express include:

To configure Mail Express for Windows (Kerberos) authentication

 
  1. Configure Active Directory

 
  1. Configure Kerberos

 
  1. Configure the Service Principal Names

 
  1. Configure the Outlook Add-In

1. Configure Active Directory

To configure the Mail Express Server to use Windows Authentication, launch the Mail Express Administration Web Site and navigate to the Active Directory page. Complete Active Directory Configuration as it pertains to your environment.

After configuring the settings on the Active Directory page, make sure that the settings are accurate by completing the Test Configuration fields (Test username, Test user password, and Confirm test user password) and clicking Test. Be sure to click Save to save your settings before leaving the page.

2. Configure Kerberos

If the Active Directory settings test was successful, then proceed to the Internal Settings page, select the Enable Single Sign On (Kerberos) check box, complete the Single Sign On fields, then click Save. (Refer to Configuring the Add-In and Internal Portal for details of configuring Single Sign On.)

3. Configure the Service Principal Names (SPN)

Why do I need an SPN? According to Microsoft Technet, "A service principal name (SPN) is the name by which a Kerberos client uniquely identifies an instance of a service for a given Kerberos target computer. If you install multiple instances of a service on computers throughout a forest, each instance must have its own SPN. A given service instance can have multiple SPNs if there are multiple names that clients might use for authentication. For example, an SPN always includes the name of the host computer on which the service instance is running, so a service instance might register an SPN for each name or alias of its host."

Using the Windows "setspn" utility, create the Service Principal Name (SPN), which is necessary for Kerberos to function correctly for Mail Express. The SPN is a name by which the Add-In can uniquely identify the Mail Express Server service. The SPN will be associated with the Active Directory domain account used in the KDC pre-auth username field of the Mail Express Server Kerberos Configuration.

The “setspn” utility is typically installed by default on Active Directory server computers. The command must be run using an account with Active Directory administration rights. Typically it is easiest to perform these steps on the domain’s primary Active Directory server.

To create the SPNs, execute the following at a command prompt:

setspn –A HTTP/<MailExpressServerHostName> <PreAuthUsername>

setspn –A HTTP/<MailExpressServerFullyQualifiedHostName> <PreAuthUsername>

setspn -A HTTP/<URL> <PreAuthUsername>

Where:

Do not type "HTTP://" -- the proper prefix is "HTTP/". For example, type:

setspn –A HTTP/meserver mepreauthuser

setspn –A HTTP/meserver.globalscape.com mepreauthuser

These SPNs should work regardless of the account the Mail Express Server Windows Service is running as.

If duplicate SPNs exist (meaning multiple domain accounts with the same HTTP/<SPN>), then Kerberos will not work correctly. Once the SPN has been associated with the Kerberos Pre-Auth Account used by the Mail Express Server to participate in Kerberos Authentication, you can double-check for duplicate SPNs on the domain using the command:  setspn –X.

To view the SPNs to verify that they were created successfully, run the following command after substituting <PreAuthUsername> auth user account:

setspn –l <PreAuthUsername>

(Note: The switch is a lower-cased letter L, not the number one.)

4. Configure the Outlook Add-In

When the Outlook Add-In is installed, end users can choose between Windows or Manual Authentication. If Windows Authentication is specified, the Service Principal Name created earlier must be specified. For instance, if a Service Principal Name was created with the command "setspn –A HTTP/meserver mepreauthuser" then type HTTP/meserver in the Service Principal Name field of the installation wizard. Again, ensure you use the prefix "HTTP/" and not "HTTP://."

HKEY_CURRENT_USER\Software\GlobalSCAPE\Mail Express Outlook Addin\Settings