Citrix Endpoint Management

Authentication

In an Citrix Endpoint Management deployment, several considerations come into play when deciding how to configure authentication. This section describes the various factors that affect authentication:

  • The main MDX policies, Citrix Endpoint Management client properties, and NetScaler Gateway settings involved with authentication.
  • The ways these policies, client properties, and settings interact.
  • The tradeoffs of each choice.

This article also includes three examples of recommended configurations for increasing degrees of security.

Broadly speaking, stronger security results in a less-optimal user experience, because users have to authenticate more often. How you balance those concerns depends on your organization’s needs and priorities. Review the three recommended configurations to understand the interplay of the various authentication options.

Authentication Modes

Online authentication: Allows users into the Citrix Endpoint Management network. Requires an Internet connection.

Offline authentication: Happens on the device. Users unlock the secure vault and have offline access to items, such as downloaded mail, cached websites, and notes.

Methods of Authentication

Single Factor

LDAP: You can configure a connection in Citrix Endpoint Management to one or more directories that are compliant with the Lightweight Directory Access Protocol (LDAP). This method is commonly used to provide single sign-on (SSO) for company environments. You might opt for Citrix PIN with Active Directory password caching to improve the user experience with LDAP. At the same time, you can provide the security of complex passwords on enrollment, password expiration, and account lockout.

For more details, see Domain or domain plus security token authentication.

Client certificate: Citrix Endpoint Management can integrate with industry-standard certificate authorities to use certificates as the sole method of online authentication. Citrix Endpoint Management provides this certificate after user enrollment, which requires either a one-time password, invitation URL, or LDAP credentials. When using a client certificate as the primary method of authentication, a Citrix PIN is required in client certificate-only environments to secure the certificate on the device.

Citrix Endpoint Management supports Certificate Revocation List (CRL) only for a third-party Certificate Authority. If you have a Microsoft CA configured, Citrix Endpoint Management uses NetScaler Gateway to manage revocation. When you configure client certificate-based authentication, consider whether you need to configure the NetScaler Gateway Certificate Revocation List (CRL) setting, Enable CRL Auto Refresh. This step makes sure that a device enrolled only in MAM can’t authenticate using an existing certificate on the device. Citrix Endpoint Management reissues a new certificate, because it doesn’t restrict a user from generating a user certificate if one is revoked. This setting increases the security of PKI entities when the CRL checks for expired PKI entities.

For a diagram that shows the deployment needed for certificate-based authentication or the use of your enterprise Certificate Authority (CA) to issue device certificates, see Architecture.

Two-factor authentication

LDAP + Client Certificate: This configuration is the best combination of security and user experience for Citrix Endpoint Management. Using both LDAP and client certificate authentication:

  • Has the best SSO possibilities coupled with security provided by two-factor authentication at the NetScaler Gateway.
  • Provides security with something users know (their Active Directory passwords) and something they have (client certificates on their devices).

Citrix Secure Mail can automatically configure and provide a seamless first-time user experience with client certificate authentication. That feature requires a properly configured Exchange client access server environment.

For optimal usability, you can combine LDAP and client certificate authentication with Citrix PIN and Active Directory password caching.

LDAP + Token: This configuration allows for the classic configuration of LDAP credentials, plus a one-time password, using the RADIUS protocol. For optimal usability, you can combine this option with Citrix PIN and Active Directory password caching.

Important policies, settings, and client properties for authentication

The following policies, settings, and client properties come into play with the following three recommended configurations:

MDX policies

App passcode: If On, a Citrix PIN or passcode is required to unlock the app when it starts or resumes after a period of inactivity. Default is On.

To configure the inactivity timer for all apps, set the INACTIVITY_TIMER value in minutes in the Citrix Endpoint Management console in Client Properties on the Settings tab. The default is 15 minutes. To disable the inactivity timer, so that a PIN or passcode prompt appears only when the app starts, set the value to zero.

micro VPN session required: If On, the user must have a connection to the enterprise network and an active session to access the app on the device. If Off, an active session isn’t required to access the app on the device. Default is Off.

Maximum offline period (hours): Defines the maximum period that an app can run without reconfirming app entitlement and refreshing policies from Citrix Endpoint Management. An iOS app retrieves new policies for MDX apps from Citrix Endpoint Management without any interruption to users after meeting the following conditions:

  • You set the Maximum offline period and
  • Citrix Secure Hub for iOS has a valid NetScaler Gateway token.

If Citrix Secure Hub doesn’t have a valid NetScaler Gateway token, users must authenticate through Citrix Secure Hub before app policies can update. The NetScaler Gateway token can become invalid because of NetScaler Gateway session inactivity or a forced session time-out policy. When users sign on to Citrix Secure Hub again, they can continue running the app.

Users are reminded to sign on at 30, 15, and 5 minutes before the period expires. After expiration, the app is locked until users sign on. Default is 72 hours (3 days). The minimum period is 1 hour.

Note:

Keep in mind that in a scenario in which users travel often and use international roaming, the default of 72 hours (3 days) might be too short.

Background services ticket expiration: The time period that a background network service ticket stays valid. When Citrix Secure Mail connects through NetScaler Gateway to an Exchange Server running ActiveSync, Citrix Endpoint Management issues a token. Citrix Secure Mail uses that token to connect to the internal Exchange Server. This property setting determines the duration that Citrix Secure Mail can use the token without requiring a new token for authentication and the connection to the Exchange Server. When the time limit expires, users must log on again to generate a new token. Default is 168 hours (7 days). When this time-out expires, mail notifications stop.

micro VPN session required grace period: Determines how many minutes a user can use the app offline until the online session is validated. The default is 0 (no grace period).

For information about authentication policies, see:

Citrix Endpoint Management client properties

Note:

Client properties are global settings that apply to all devices that connect to Citrix Endpoint Management.

Citrix PIN: For a simple sign-on experience, you might choose to enable the Citrix PIN. With the PIN, users do not have to enter other credentials repeatedly, such as their Active Directory user names and passwords. You can configure the Citrix PIN as a standalone offline authentication only, or combine the PIN with Active Directory password caching to streamline authentication for optimal usability. You configure the Citrix PIN in Settings > Client > Client Properties in the Citrix Endpoint Management console.

The following is a summary of a few important properties. For more information, see Client properties.

ENABLE_PASSCODE_AUTH

Display name: Enable Citrix PIN Authentication

This key allows you to turn on Citrix PIN functionality. With the Citrix PIN or passcode, users are prompted to define a PIN to use instead of their Active Directory password. Enable this setting if ENABLE_PASSWORD_CACHING is enabled or if Citrix Endpoint Management is using certificate authentication.

Possible values: true or false

Default value: false

ENABLE_PASSWORD_CACHING

Display name: Enable User Password Caching

This key lets you allow the users’ Active Directory password to be cached locally on the mobile device. When you set this key to true, users are prompted to set a Citrix PIN or passcode. The ENABLE_PASSCODE_AUTH key must be set to true when you set this key to true.

Possible values: true or false

Default value: false

PASSCODE_STRENGTH

Display name: PIN Strength Requirement

This key defines the strength of the Citrix PIN or passcode. When you change this setting, users are prompted to set a new Citrix PIN or passcode the next time they’re prompted to authenticate.

Possible values: Low, Medium, or Strong

Default value: Medium

INACTIVITY_TIMER

Display name: Inactivity timer

This key defines the time in minutes that users can leave their devices inactive and then access an app without being prompted for a Citrix PIN or passcode. To enable this setting for an MDX app, you must set the App Passcode setting to On. If the App Passcode setting is set to Off, users are redirected to Citrix Secure Hub to do a full authentication. When you change this setting, the value takes effect the next time users are prompted to authenticate. The default is 15 minutes.

ENABLE_TOUCH_ID_AUTH

Display name: Enable Touch ID Authentication

Allows the use of the fingerprint reader (in iOS only) for offline authentication. Online authentication still requires the primary authentication method.

ENCRYPT_SECRETS_USING_PASSCODE

Display name: Encrypt secrets using Passcode

This key lets sensitive data be stored on the mobile device in a secret vault instead of in a platform-based native store, such as the iOS keychain. This configuration key enables strong encryption of key artifacts, but also adds user entropy (a user-generated random PIN code that only the user knows).

Possible values: true or false

Default value: false

NetScaler Gateway Settings

Session time-out: If you enable this setting, NetScaler Gateway disconnects the session if NetScaler Gateway detects no network activity for the specified interval. This setting is enforced for users who connect with the NetScaler Gateway Plug-in, Citrix Secure Hub, or through a web browser. Default is 1440 minutes. If you set this value to zero, the setting is disabled.

Forced time-out: If you enable this setting, NetScaler Gateway disconnects the session after the time-out interval elapses no matter what the user is doing. When the time-out interval elapses, there’s no action the user can take to prevent the disconnection. This setting is enforced for users who connect with the NetScaler Gateway Plug-in, Citrix Secure Hub, or through a web browser. If Citrix Secure Mail is using STA, a special NetScaler Gateway mode, this setting doesn’t apply to Citrix Secure Mail sessions. Default is no value, which means sessions are extended for any activity.

For more information about time-out settings for NetScaler Gateway, see the NetScaler Gateway documentation.

For more information on the scenarios that prompt users to authenticate with Citrix Endpoint Management by entering credentials on their devices, see Authentication Prompt Scenarios.

Default configuration settings

These settings are the defaults provided by the:

  • NetScaler for XenMobile wizard
  • MAM SDK or MDX Toolkit
  • Citrix Endpoint Management console
Setting Where to Find the Setting Default Setting
Session time-out NetScaler Gateway 1440 minutes
Forced time-out NetScaler Gateway No value (off)
Maximum offline period MDX Policies 72 hours
Background services ticket expiration MDX Policies 168 hours (7 days)
micro VPN session required MDX Policies Off
micro VPN session required grace period MDX Policies 0
App passcode MDX Policies On
Encrypt secrets using passcode Citrix Endpoint Management client properties false
Enable Citrix PIN Authentication Citrix Endpoint Management client properties false
PIN Strength Requirement Citrix Endpoint Management client properties Medium
PIN Type Citrix Endpoint Management client properties Numeric
Enable User Password Caching Citrix Endpoint Management client properties false
Inactivity Timer Citrix Endpoint Management client properties 15
Enable Touch ID Authentication Citrix Endpoint Management client properties false

This section gives examples of three Citrix Endpoint Management configurations that range from the lowest security and optimal user experience to the highest security and more intrusive user experience. These examples provide you with helpful reference points to determine where on the scale you want to place your own configuration. Modifying these settings might require you to alter other settings. For instance, the maximum offline period must not go past the session time-out.

Highest Security

This configuration offers the highest level of security but has significant usability trade-offs.

       
Setting Where to Find the Setting Recommended Setting Behavior Impact
Session time-out NetScaler Gateway 1440 Users enter their Citrix Secure Hub credentials only when online authentication is required-every 24 hours.
Forced time-out NetScaler Gateway No value Sessions are extended if there’s any activity.
Maximum offline period MDX Policies 23 Requires policy refresh every day.
Background services ticket expiration MDX Policies 72 hours Time out for STA, which allows for long-lived sessions without a NetScaler Gateway session token. For Citrix Secure Mail, making the STA time-out longer than the session time-out avoids having mail notifications stop. In that case, Citrix Secure Mail doesn’t prompt the user if they don’t open the app before the session expires.
micro VPN session required MDX Policies Off Provides a valid network connection and NetScaler Gateway session to use the apps.
micro VPN session required grace period MDX Policies 0 No grace period (if you enabled micro VPN session required).
App passcode MDX Policies On Require a passcode for an application.
Encrypt secrets using passcode Citrix Endpoint Management client properties true A key derived from user entropy protects the vault.
Enable Citrix PIN Authentication Citrix Endpoint Management client properties true Enable Citrix PIN for a simplified authentication experience.
PIN Strength Requirement Citrix Endpoint Management client properties Strong High password complexity requirements.
PIN Type Citrix Endpoint Management client properties Alphanumeric PIN is an alphanumeric sequence.
Enable Password Caching Citrix Endpoint Management client properties false Active Directory password isn’t cached and a Citrix PIN is used for offline authentications.
Inactivity Timer Citrix Endpoint Management client properties 15 If a user doesn’t use MDX apps or Citrix Secure Hub for this period, prompt for offline authentication.
Enable Touch ID Authentication Citrix Endpoint Management client properties false Disables Touch ID for offline authentication use cases in iOS.

Higher Security

A more middle-of-the-road approach, this configuration requires users to authenticate more often - every 3 days, at most, instead of 7 - and stronger security. The increased number of authentications lock the container more often, providing data security when devices aren’t in use.

       
Setting Where to Find the Setting Recommended Setting Behavior Impact
Session time-out NetScaler Gateway 4320 Users enter their Citrix Secure Hub credentials only when online authentication is required - every 3 days
Forced time-out NetScaler Gateway No value Sessions are extended if there’s any activity.
Maximum offline period MDX Policies 71 Requires policy refresh every 3 days. The hour difference is to allow for refresh ahead of session time-out.
Background services ticket expiration MDX Policies 168 hours Time out for STA, which allows for long-lived sessions without a NetScaler Gateway session token. For Citrix Secure Mail, making the STA time-out longer than the session time-out avoids having mail notifications stop without prompting the user.
micro VPN session required MDX Policies Off Provides a valid network connection and NetScaler Gateway session to use the apps.
micro VPN session required grace period MDX Policies 0 No grace period (if you enabled micro VPN session required).
App passcode MDX Policies On Require a passcode for an application.
Encrypt secrets using passcode Citrix Endpoint Management client properties false Do not require user entropy to encrypt the vault.
Enable Citrix PIN Authentication Citrix Endpoint Management client properties true Enable Citrix PIN for a simplified authentication experience.
PIN Strength Requirement Citrix Endpoint Management client properties Medium Enforces medium password complexity rules.
PIN Type Citrix Endpoint Management client properties Numeric A PIN is a numeric sequence.
Enable Password Caching Citrix Endpoint Management client properties true The user PIN caches and protects the Active Directory password.
Inactivity Timer Citrix Endpoint Management client properties 30 If a user doesn’t use MDX apps or Citrix Secure Hub for this period, prompt for offline authentication.
Enable Touch ID Authentication Citrix Endpoint Management client properties true Enables Touch ID for offline authentication use cases in iOS.

High Security

This configuration, the most convenient to users, provides base-level security.

       
Setting Where to Find the Setting Recommended Setting Behavior Impact
Session time-out NetScaler Gateway 10080 Users enter their Citrix Secure Hub credentials only when online authentication is required - every 7 days
Forced time-out NetScaler Gateway No value Sessions are extended if there’s any activity.
Maximum offline period MDX Policies 167 Requires policy refresh every week (every 7 days). The hour difference is to allow for refresh ahead of session time-out.
Background services ticket expiration MDX Policies 240 Time out for STA, which allows for long-lived sessions without a NetScaler Gateway session token. For Citrix Secure Mail, making the STA time-out longer than the session time-out avoids having mail notifications stop. In that case, Citrix Secure Mail doesn’t prompt the user if they don’t open the app before the session expires.
micro VPN session required MDX Policies Off Provides a valid network connection and NetScaler Gateway session to use the apps.
micro VPN session required grace period MDX Policies 0 No grace period (if you enabled micro VPN session required).
App passcode MDX Policies On Require a passcode for an application.
Encrypt secrets using passcode Citrix Endpoint Management client properties false Do not require user entropy to encrypt the vault.
Enable Citrix PIN Authentication Citrix Endpoint Management client properties true Enable Citrix PIN for a simplified authentication experience.
PIN Strength Requirement Citrix Endpoint Management client properties Low No password complexity requirements
PIN Type Citrix Endpoint Management client properties Numeric A PIN is a numeric sequence.
Enable Password Caching Citrix Endpoint Management client properties true The user PIN caches and protects the Active Directory password.
Inactivity Timer Citrix Endpoint Management client properties 90 If a user doesn’t use MDX apps or Citrix Secure Hub for this period, prompt for offline authentication.
Enable Touch ID Authentication Citrix Endpoint Management client properties true Enables Touch ID for offline authentication use cases in iOS.

Using Step-Up Authentication

Some apps might require enhanced authentication. For example, a secondary authentication factor, such as a token or aggressive session time-outs. You control this authentication method through an MDX policy. The method also requires a separate virtual server to control the authentication methods (on either the same or on separate NetScaler Gateway appliances).

Setting Where to Find the Setting Recommended Setting Behavior Impact
Alternate NetScaler Gateway MDX Policies Requires the FQDN and port of the secondary NetScaler Gateway appliance. Allows for enhanced authentication controlled by the secondary NetScaler Gateway appliance authentication and session policies.

If a user opens an app that uses the alternate NetScaler Gateway, all other apps use that NetScaler Gateway instance to communicate with the internal network. The session only switches back to the lower security NetScaler Gateway instance when the session times out from the NetScaler Gateway instance with enhanced security.

Using micro VPN session required

For certain applications, such as Citrix Secure Web, you can make sure that users run an app only when they have an authenticated session. This policy enforces that option and allows for a grace period so users can finish their work.

Setting Where to Find the Setting Recommended Setting Behavior Impact
micro VPN session required MDX Policies On Makes sure that a device is online and has a valid authentication token.
micro VPN session required grace period MDX Policies 15 Allows a 15-minute grace period before the user can no longer use the apps
Authentication