Importing and authenticating users through LDAP
LDAP overview
Lightweight Directory Access Protocol (LDAP) is a standard, cross-platform, client-server protocol for interacting with directory services such as Active Directory (AD) over an Internet Protocol (IP) network. The Tanium Core Platform supports LDAP for authenticating users and importing users and user groups.
You can configure the Tanium Server to synchronize with multiple LDAP servers. In each LDAP server configuration, you specify whether to authenticate synchronized users through the LDAP server. Otherwise, the Tanium Server applies whatever other user authentication methods you configured. For more information, see User authentication.
LDAP synchronization
The Tanium Server automatically synchronizes with each LDAP server every five minutes and you can manually synchronize at any time. In an active-active deployment, only one Tanium Server synchronizes with LDAP servers at any given time. Synchronization updates the Tanium Server with any changes that occurred on the LDAP server, including:
-
New, updated, disabled, or deleted users
-
New, updated, or deleted user groups
-
Changes to user group membership
RBAC configuration for new users and user groups
Assign roles, computer groups, and personas to new users and user groups after the Tanium Server imports them from an LDAP server. If you import any user accounts that are not assigned to user groups, you must manually configure those assignments also. For more information, see:
LDAP logs and troubleshooting
If synchronization with an Active Directory server does not return all of the expected users or user groups, you might need to change the page size. For more information, see the ldap_page_size setting in Reference: Tanium Core Platform settings.
If a user account that is imported from an LDAP server cannot sign in to Tanium Console, ask the LDAP administrator to check the account status.
To troubleshoot other issues with your LDAP integration, review the LDAP logs:
Example: LDAP synchronization and authentication
The figure LDAP synchronization and authentication illustrates LDAP synchronization and authentication for the following example deployment:
-
The Tanium Server is installed on a Tanium Appliance and uses Secure LDAP (LDAPS) encryption for connections to LDAP servers.
Note: The available Encryption options (see LDAP server connection settings) depend on the operating systems of the Tanium Server and LDAP servers. -
All the LDAP configurations specify that the LDAP servers will authenticate the imported users.
-
One account (Tanium_Admin) with the Administrator reserved role is not imported from an LDAP server, and the Tanium Appliance uses its local authentication service for that user. This configuration ensures that at least one user can access Tanium Console even if LDAP connections go down.
The following steps (matching the numbers in the figure LDAP synchronization and authentication) summarize the LDAP synchronization process for this example deployment.
|
Each LDAP server configuration identifies which users and user groups to synchronize with which LDAP server. For configuration details, see User and user group filtering and Configure LDAP server connections. |
|
|
The Tanium Server initiates connections with the LDAP servers to perform the initial import of users and user groups and to periodically query for updates. All the LDAP server configurations specify LDAPS encryption in this example, so the Tanium Server connects to port 636 on the LDAP servers. |
The following steps (matching the letters in the figure LDAP synchronization and authentication) summarize the LDAP authentication process for this example deployment.
|
A synchronized user enters a domain (if required), user name, and password to sign in to Tanium Console. |
|
|
The Tanium Server uses the specified user name to find the corresponding external identifier (such as objectGUID) in the Tanium database. (In the LDAP server configuration, the User Unique ID Property specifies this identifier). |
|
|
The Tanium Server uses the external identifier to query the LDAP server for the matching distinguished name (DN) of the user, such as cn=jdoe,ou=noc,dc=acme,dc=com. (The query is based on the same settings as those used for synchronization. For more information, see User and user group filtering and Configure LDAP server connections.) The LDAP server then authenticates the user based on the DN and sign in password. After the LDAP server returns an authentication success message, the Tanium Server provides the user access to Tanium Console. |
|
|
When a user configured locally (Tanium_Admin) enters sign in credentials, the Tanium Server uses the local authentication service to authenticate the user, and then provides access to Tanium Console. |
User and user group filtering
Before configuring LDAP server connections, be sure to understand the interactions among the settings in the table LDAP settings for user and user group filtering. The Tanium Server uses these settings to filter users and user groups that it synchronizes.
For example, because the best practice is to configure RBAC for Tanium users based on user group permissions instead of user permissions, you might want to exclude users who are not assigned to groups. The figures Filtering on LDAP servers and LDAP user and group filtering illustrate an example of the steps that the servers perform in that scenario, with separate workflows for filtering users on the LDAP servers and Tanium Server.
|
LDAP setting |
Filtering behavior |
|---|---|
|
Group Base |
When the Tanium Server sends a synchronization request ( |
|
Group Filter |
The LDAP server uses this field to filter the user groups in the Group Base. In this example, the LDAP server returns groups only if their objectClass attribute is set to group ( |
|
Users Base |
The LDAP server searches only for users that are under this base DN, such as cn=adm,ou=tanium,dc=acme,dc=com. |
|
Users Filter |
The LDAP server uses this field to filter the users in the Users Base. In this example, the LDAP server returns users only if their objectClass attribute is set to user ( |
|
Filter Users |
If you want to exclude users who are not assigned to user groups that are synchronized with the Tanium Server, select one or both of the following options:
After consolidating any duplicates in the synchronized users and groups, the Tanium Server updates the Tanium database ( |
The following figure illustrates user filtering on LDAP servers.
The following figure illustrates user filtering on the Tanium Server.
Best practices for LDAP integrations
When establishing and managing the integration between Tanium Servers and LDAP servers, observe the following best practices to avoid unexpected issues.
Create users and user groups on the LDAP server
On the back-end LDAP server, create LDAP user groups that correspond with Tanium user groups, and create user accounts for the users who require access to the Tanium system.
Manage Tanium access through the LDAP server
Manage Tanium access through the back-end LDAP server configuration instead of the front-end Tanium Console configuration. For example, the best way to on-board and off-board users is to modify the membership of synchronized user groups.
Control LDAP server access
Control access to the back-end LDAP server configuration so that LDAP administrators who are not familiar with your Tanium deployment cannot make changes that affect it.
Maintain a local administrator account
On the Tanium Server, maintain at least one account in the Users configuration that the Tanium Server does not import from an LDAP server. Assign the Administrator reserved role to this local user so that you can use the account to sign in to Tanium Console and re-configure the LDAP server connections in case they fail. Some organizations provision multiple administrator users outside of the LDAP servers for this reason. To avoid creating duplicate user configurations in cases where the account name also exists on an LDAP server, you can configure the Users Filter in the LDAP servers to prevent synchronization for the account. For more information, see LDAP server connection settings.
Deleting users
When transitioning from manually-created users to LDAP-synchronized users, you might inadvertently create multiple configuration objects for a single real user. When deleting user configurations to correct redundancies, be sure to understand the impact on associated configuration objects, such as scheduled actions, saved questions, Tanium Connect objects, solution plugins, or solution services.
For example, you might have used Tanium Console to manually create a user named john.doe and then synchronized with an LDAP server that returns the same user name. This causes the Tanium Server to have two user configurations for john.doe and automatically assign a unique object ID to each one. In the example of the figure Redundant user configurations on the Tanium Server, the objects that john.doe - ID 2 created do not also belong to john.doe - ID 3. If you delete the john.doe - ID 2 configuration, you must be ready to re-create or transfer ownership for the configuration objects that run under that ID.
Before correcting user account redundancies, it is important to understand the ramifications of deleting an account based on its source:
-
Local user
If you delete the configuration for a user defined locally on the Tanium Server, but the user still matches the filters defined in an LDAP server, the Tanium Server retains a configuration for the user.
-
Imported user
If you use Tanium Console to delete a user account that was imported from an LDAP server, that user remains deleted after the next synchronization.
-
User on LDAP server
If you delete a user from the back-end LDAP server configuration, the Tanium Server marks that user as locked out after the next synchronization. The user cannot sign in, but the Tanium Server does not automatically delete the user account. Any scheduled questions and actions that the user owns continue to run. This gives other Tanium administrators the chance to re-create the scheduled questions and actions under a different user account or to transfer the content to another user.
For more information, see Delete, un-delete, or lock out a user and Delete content or transfer ownership.
Configure LDAP server connections
Before you begin
Before you configure connections to LDAP servers, review the Best practices for LDAP integrations and ensure that your environment meets the following requirements.
|
Requirement |
Details |
|---|---|
|
Ports |
For synchronization, the Tanium Server initiates the connection with the LDAP server. The standard LDAP port is 389 (3268 for an AD global catalog) for unencrypted connections, connections that use StartTLS, or AD connections that use the Sign and encrypt option for Encryption. The standard port for LDAPS encryption is 636 (3269 for an AD global catalog). In the LDAP server configuration, you can specify whatever port your LDAP server listens on for its inbound LDAP traffic. Your network administrator must configure network security to allow this traffic. |
|
Encryption (Tanium Appliance only) |
If you plan to use LDAPS or StartTLS as the Encryption option, you must first import the certificate authority (CA) certificate for the LDAP server and enable the encryption configuration on the Appliance. In an active-active deployment, upload the certificate and enable encryption on both Tanium Servers. For more information, see Configure LDAPS or StartTLS. |
|
Digital keys |
For the minimum bit size of the keys that LDAP servers must use to communicate with the Tanium Server, see Communication with external systems. |
|
Identifiers |
You must know the base distinguished name (DN), IDs, and filter expressions for the users and user groups that you want to import. The values are case sensitive. |
|
Query permission |
The LDAP server must allow queries using the configured filter expressions. |
Configure an LDAP server connection
Clone an LDAP server
Cloning an LDAP server configuration is usually easier than creating a new configuration from scratch if the clone has settings that are similar to an existing configuration. For example, you can create multiple clones in which only the domains differ .
-
From the Main menu, go to .
-
Click Clone
in the row of the LDAP server that you want to clone.
-
Click Edit
in the row for the cloned configuration.
-
Edit the settings as necessary using the guidance provided in LDAP server connection settings.
-
Click Show Preview to Continue, review the users and user groups to import, and click Save.
Manually synchronize with an LDAP server
The Tanium Server automatically synchronizes with LDAP servers every five minutes. However, you can manually synchronize to make Tanium Console immediately show changes made on the LDAP servers, such as user group membership updates.
-
From the Main menu, go to .
If the Sync Now button is enabled, proceed to the next step. If the button is disabled, sign in to Tanium Console on the other Tanium Server to manually synchronize.
-
Click Sync Now.
Import content files
You must be assigned a role with Import Signed Content permission to import content files through the following steps.
Pause or resume an LDAP server
If you are upgrading an LDAP server, or troubleshooting unexpected synchronization results, you can pause synchronization for a particular LDAP server. When synchronization is paused, authentication continues to work and the Tanium Server preserves existing RBAC assignments. After you finish upgrading or troubleshooting, you can resume synchronization.
- From the Main menu, go to .
- Click Edit
in the row for the LDAP server.
- Select Pause to pause LDAP synchronization or select Enable to resume synchronization.
- Click Show Preview to Continue, review the affected users and user groups, and click Save.
Delete an LDAP server
When you delete an LDAP server configuration, the Tanium Server stops updating the users and user groups that it previously imported from that LDAP server. When the Tanium Server next performs synchronization for the remaining LDAP servers, it removes the users and groups associated with the deleted configuration. If you no longer want that information saved on the Tanium Server, perform the following steps to delete the configuration:
- From the Main menu, go to .
- Click Edit
in the row for the LDAP server and click Delete at the top right.