Configure LDAP authentication for TanOS system users

You can optionally configure an LDAP connection to use Active Directory or another directory service to manage TanOS system users.

Note:
  • You cannot delete the tanadmin and tancopy special users. These user accounts are always administered locally within TanOS. Even if an LDAP query returns either of these user names, the locally administered user and associated password takes precedence.

  • This LDAP configuration applies only for authentication in the TanOS console. For information about using LDAP for Tanium users, see Importing and authenticating users through LDAPIntegrating with LDAP servers.

  • TanOS requires TLS encryption using StartTLS for communication with the LDAP server, and the standard port is 389. 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.

  • If you configure an LDAP connection to manage TanOS system users, you cannot enable global multifactor authentication. For more information, see Configure global authentication requirements and global multifactor authentication.

Manage the authentication certificate for the LDAP server

TanOS requires TLS encryption using StartTLS for communication with the LDAP server. You must import the LDAP server root certificate authority (CA) certificate. The certificate must be in PEM format. On the Appliance, you have the option to paste the contents of the LDAP server root CA certificate or import the file.

Note:
  • If you import a new certificate after you have already configured LDAP server connection settings, you must re-enter the bind credentials for the connection. For more information, see Configure specific LDAP connection settings.

  • Secure certificates for Server and Client systems are required. The certificates have a minimum bit size of 2048 for RSA and 256 for ECDSA. To check key sizes, use OpenSSL from a CLI. If your Tanium license includes Tanium Certificate Manager, see Appliance dashboardView short keys for the steps to check the key sizes in your environment.

Option 1: Paste the LDAP server root CA certificate Contents

  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A-M (User Administration > AD/LDAP TanOS Authentication > Manage AD/LDAP Certificate).
  3. Enter P and follow the prompts to paste the contents of the LDAP server root CA certificate file.
    CODE
    ------------------------------------------------------
    
    >>> User Management -> AD/LDAP TanOS Authentication -> Paste Certificate <<< 
    
    Please paste the certificate text (Empty line to end):
    -----BEGIN CERTIFICATE-----
    MIIEYzCCAsugAwIBAgIQHIaS1rg5zQdeFajAwRMjdjANBgkqhkiG9w0BAQsFADCB
    jTEeMBwGA1UEChMVbWtjZXJ0IGRldmVsb3BtZW50IENBMTEwLwYDVQQLDCh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zXxVR0GaOMgRLJfoVz9hmOZpWPhkOxfSwTdyLJgeqtSf237laZhXyFRFmBM/F0Zd
    upitvpc9zpcjdRVFC5rO0YVWmBKtSr9vemOIZJtBYrTC1EuOvAbJPiMg2EXNZt9H
    My2vKMLrQ4La7vsM3Er9w02qKNtWXrLIvx65P81anVUhRKmLBsMtQgoIOFi5uk8t
    OkOdTcFUlJbVP5vGa9ZQSnopZw1jYF6IpKkKHpA0WMWFez5peQ8ZdRt7IgY/q1CE
    cDUcl9LAwQkeZ9g5B0uZ6VX7tP5oafLqChptskp3xDR/IfduX7dOuSCQNYbPAtlb
    lKgJjqSTaM4vmsWOPhlkoLmqLh4IyAk=
    -----END CERTIFICATE-----
    
    Validating input
    
    Certificate successfully installed
    
     Press enter to continue
    
    ------------------------------------------------------

Option 2: Import the LDAP server root CA certificate file

  1. Use SFTP to copy the certificate file to the /incoming directory of the Tanium Server Appliance.
  2. Sign in to the TanOS console as a user with the tanadmin role.
  3. Enter C-A-M (User Administration > AD/LDAP TanOS Authentication > Manage AD/LDAP Certificate).
  4. Enter I and follow the prompts to import the LDAP server root CA certificate file.

Manage the imported LDAP server root CA certificate

  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A (User Administration > AD/LDAP TanOS Authentication).
  3. Enter M to go to the Manage AD/LDAP Certificate menu and view the certificate information. Use the menu options to manage the certificate.

Configure the LDAP server connection settings

Best practice: Import the LDAP server root CA certificate before you configure the LDAP server connection settings. Though you can complete the configuration without the certificate, TanOS cannot connect to the LDAP server during the process to validate the users or groups that you enter for tanadmin and tanuser role mappings.

Complete the walk-through configuration

The walk-through configuration provides a series of prompts that help you complete the necessary settings for an LDAP server connection. The prompts provide contextual information for each setting. For a reference of the settings that you configure during the walk-through configuration, see Configure specific LDAP connection settings.

  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A (User Administration > AD/LDAP TanOS Authentication).
  3. Enter W to go to the Walkthrough Configuration screen. Follow the prompts to configure the connection to the LDAP server.

    After you complete the configuration, the full AD/LDAP TanOS Authentication menu becomes available.

    PYTHON
    ------------------------------------------------------
    
    >>> User Management -> AD/LDAP TanOS Authentication <<< 
    
                Certificate: Installed 
              Configuration: Valid (Online) 
    
              M: Manage AD/LDAP Certificate
              C: Configure AD/LDAP TanOS Authentication
              W: Walkthrough Configuration
    
              S: Detailed Status
              V: Verify AD/LDAP User or Group
              T: Troubleshooting
    
              E: Export configuration to SFTP outgoing
              I: Import configuration from SFTP incoming
    
              X: Reset ALL AD/LDAP TanOS Auth Settings
    
              R: Return to previous menu  RR: Return to top
    
    ------------------------------------------------------

Configure specific LDAP connection settings

Use the Configure AD/LDAP TanOS Authentication menu to change specific LDAP connection settings.

Best practice: For the initial configuration, use the walk-through configuration. Use this menu to configure specific settings that you need to change after the initial configuration is complete. For more information, see Complete the walk-through configuration.
  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A-C (User Administration > AD/LDAP TanOS Authentication > Configure AD/LDAP TanOS Authentication).
  3. Use the menu options to modify the following settings as necessary:
    Table 1. LDAP connection settings for TanOS authentication

    Setting

    Menu Key

    Description

    Enable

    E

    Specifies whether LDAP authentication is enabled for authenticating TanOS system users. For more information, see Enable or disable LDAP authentication.

    Domain

    D

    The domain by which the system and logs refer to the LDAP configuration. This setting does not affect the connection to the LDAP server.

    Host

    H

    The host name of the LDAP server

    Note:
    • TanOS requires TLS encryption for communication with the LDAP server. The host name configured for this setting must match the common name or subject alternative name in the TLS certificate presented by the LDAP server. An IP address is not usually not valid.

    • If you change the host name in an existing configuration, you must re-enter the bind credentials for the connection. (Enter C from the Configure menu.)

    Port

    P

    The port on which to connect to the LDAP server

    Tip: This is typically port 389.
    Note: If you change the port number in an existing configuration, you must re-enter the bind credentials for the connection. (Enter C from the Configure menu.)

    Bind Credentials

    C

    The user name used to sign in to and query the LDAP server in a format accepted by the server, and the password for the user name

    Tip:

    The following user name formats are commonly used, depending on the configuration of your Active Directory or LDAP server:

    • User principal name (UPN): An email-style user name, such as user@domain.name

    • Distinguised name (DN): A string of LDAP attributes that identify the user, such as CN=User Name, OU=Department, DC=domain, DC=com

    Base Search DN

    B

    The base DN from which TanOS queries the directory

    Schema

    S

    The schema used by the LDAP server. TanOS supports Active Directory, RFC2307, RFC2307bis, Red Hat Identity Manager (IdM), and FreeIPA.

    Referrals

    Q

    Specifies whether TanOS allows the LDAP server to refer the query to other connected LDAP servers when you have multiple LDAP servers in your organization

    Important:
    • Referrals can significantly increase the time required to process a query.

    • TanOS does not always allow a user returned from a referral to sign on, depending on the configuration of the directory.

    SSH Public Key Attribute

    K

    The LDAP attribute that contains the SSH public key for each user

    Important: The user that is specified for the Bind Credentials setting must have read access to this attribute.
    Tip: This attribute is commonly sshPublicKey.

    Users Filter

    U

    The LDAP search filter to use to limit the users that the LDAP server returns for the query. Leave this setting blank to return all users under the base search DN.

    Note: Most LDAP servers do not support using wildcard characters or nested groups with the MemberOf attribute in a filter.

    Groups Filter

    G

    The LDAP search filter to use to limit the groups that the LDAP server returns for the query. Leave this setting blank to return all groups under the base search DN.

    TanOS Roles Mapping

    M

    The LDAP users or groups that map to the tanadmin and tanuser roles.

    Enter A to go to the tanadmin Mappings menu and manage the users or groups that map to the tanadmin role. Users in these groups have access to all TanOS menus.

    CODE
    ------------------------------------------------------
    
    >>> User Management -> AD/LDAP TanOS Auth -> tanadmin Mappings <<< 
    
              1: Administrators (Group)
              2: TanOS Admins (Group)
    
              A: Add Mapping
              I: Manually Input Mapping
              X: Remove ALL tanadmin Mappings
    
              R: Return to previous menu  RR: Return to top
    
    ------------------------------------------------------

    Enter U to go to the tanuser Mappings menu and manage the users or groups that map to the tanuser role. Users in these groups have access to TanOS status menus.

    CODE
    ------------------------------------------------------
    
    >>> User Management -> AD/LDAP TanOS Auth -> tanuser Mappings <<< 
    
              1: TanOS Users (Group)
    
              A: Add Mapping
              I: Manually Input Mapping
              X: Remove ALL tanuser Mappings
    
              R: Return to previous menu  RR: Return to top
    
    ------------------------------------------------------

    Within either mappings menu, enter A to add a mapping. If TanOS can successfully connect to the LDAP server, it displays a searchable list of users or groups; type to filter the list or use the arrow keys to select an entry. If TanOS cannot connect to the LDAP server or no users or groups are found, you are prompted to manually enter the mapping. Enter I to bypass the searchable list and manually input a mapping at any time.

    Note:
    • Avoid assigning users in the directory to both a group that is mapped to the tanadmin role and a group that is mapped to the tanuser role. If a user is assigned both roles, the user can perform most administrative tasks in TanOS, but permissions might be unpredictable. You can review users with conflicting mappings in the Detailed Status report. For more information, see View the LDAP connection status and query results.

    • You cannot delete the tanadmin and tancopy special users. These user accounts are always administered locally within TanOS. Even if an LDAP query returns either of these user names, the locally administered user and associated password takes precedence.

  4. Enter V to validate the updated configuration.
    Note: This option validates that the required settings are configured, but it does not verify the connection to the LDAP server. If TanOS successfully connects to the server, Configuration: Valid (Online) appears in the AD/LDAP TanOS Authentication menu after you apply the configuration. The Detailed Status report displays additional information and any errors that occur during the query. For more information, see View the LDAP connection status and query results.
  5. Enter A to apply the updated configuration.

View the LDAP connection status and query results

The Detailed Status report displays the following information:

  • Users and groups returned from the LDAP query

  • Users that map to the tanadmin and tanuser roles

  • Any connection errors or errors that the query returns

Note: This report is available only after you have configured a connection to an LDAP server.
  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A (User Administration > AD/LDAP TanOS Authentication).
  3. Enter S to display the Detailed Status report.
    CODE
    Viewing AD/LDAP TanOS Authentication Status, press 'q' to exit
    
    
    System Security Services Daemon (sssd)
    --------------------------------------
    Online status: Online
    
    Active servers:
    LDAP: dc01.localdomain
    
    Discovered LDAP servers:
    - dc01.localdomain
    
    Object Counts
    -------------
    Visible users: 4
    Visible groups: 2
    
    Users with tanadmin: 1
    Users with tanuser: 1
    Users with conflicting mappings: 0
    
    Visible Users
    -------------
    Administrator
    Guest
    tanos.domain.admin
    tanos.domain.user
    
    Visible Groups
    --------------
    TanOS Admins
    TanOS Users
    
    Users With Privileges Based on Mappings
    ---------------------------------------
    User                      Role
    ====                      ====
    tanos.domain.user               tanuser
    tanos.domain.admin               tanadmin
    (END)

Verify that the LDAP query returns a specific user

Note: This menu is available only after you have configured a connection to an LDAP server.
  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A-V (User Administration > AD/LDAP TanOS Authentication > Verify User/Group).
  3. Enter U to verify a user.
  4. Follow the prompts to enter a user name to verify.

Verify that the LDAP query returns a specific group

Note: This menu is available only after you have configured a connection to an LDAP server.
  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A-V (User Administration > AD/LDAP TanOS Authentication > Verify User/Group).
  3. Enter G to verify a group.
  4. Follow the prompts to enter a group name to verify.

Export the LDAP configuration for use on another TanOS Appliance

Note: This menu is available only after you have configured a connection to an LDAP server.
  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A (User Administration > AD/LDAP TanOS Authentication).
  3. Enter E to export the LDAP configuration.

    The exported configuration is stored as ldapauth.conf in the /outgoing directory.

Import an LDAP configuration that was exported from another TanOS Appliance

  1. Use SFTP to copy the ldapauth.conf file to the /incoming directory of the TanOS Appliance where you want to import the configuration.
  2. Sign in to the TanOS console on the TanOS Appliance where you want to import the configuration as a user with the tanadmin role.
  3. Enter C-A (User Administration > AD/LDAP TanOS Authentication).
  4. Enter I to import the LDAP configuration.

Enable or disable LDAP authentication

After you complete the configuration for an LDAP connection and TanOS successfully connects to the Active Directory or LDAP server, LDAP authentication is automatically enabled for the Appliance. You can disable or re-enable LDAP authentication with the configuration still in place.

  1. Sign in to the TanOS console as a user with the tanadmin role.
  2. Enter C-A-C-E (User Administration > AD/LDAP TanOS Authentication > Configure AD/LDAP TanOS Authentication > Enable/Disable).
  3. Enter D to disable LDAP authentication, or enter E to enable LDAP authentication.
    Note: If you disable LDAP authentication, TanOS might close sessions for any users who are signed on with user names authenticated with LDAP.