> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/t/titus.md).

# Titus

Titus (now Fortra) provides data classification for documents and email. OctoXLabs connects to the Titus reporting database on Microsoft SQL Server, reads the event log of the last 90 days, and adds the computers it finds to the device inventory.

## Use cases

* **Find computers where Titus classification is in use.** List devices reported by Titus.

```
Adapters = titus
```

* **Find devices without Titus activity.**

```
Adapters = active-directory AND NOT Adapters = titus
```

## Before you begin

### Network

| Source              | Destination                       | Port                  | Protocol         |
| ------------------- | --------------------------------- | --------------------- | ---------------- |
| OctoXLabs connector | Titus MSSQL server (IP parameter) | 1433 (Port parameter) | TDS (SQL Server) |
| OctoXLabs connector | Kerberos KDC (Kerberos only)      | Not verified          | Kerberos         |

### Required permissions

| Scope or role  | Permission                                                            | Needed for                   |
| -------------- | --------------------------------------------------------------------- | ---------------------------- |
| Database login | Read, with Select and List privileges on the Titus reporting database | Reading the `EventLog` table |

## Create credentials in SQL Server

{% stepper %}
{% step %}

### Open SQL Server Management Studio

Connect to the server that hosts the Titus reporting database.
{% endstep %}

{% step %}

### Create a login

Expand **Security**, right-click **Logins** and select **New Login**. Choose the authentication method the server uses.
{% endstep %}

{% step %}

### Fill in the details

Enter the details and set the **Default Database** to the Titus reporting database. Grant Select and List privileges.
{% endstep %}

{% step %}

### Save and sign in once

Save the login. Then sign in to the database once with this login to avoid an error.
{% endstep %}
{% endstepper %}

For Kerberos, use an Active Directory account. Create a keytab with `ktpass` on a domain controller if you use keytab mode.

## Connection parameters

| Parameter                | Required    | Type    | Default          | Description                                                                                                     |
| ------------------------ | ----------- | ------- | ---------------- | --------------------------------------------------------------------------------------------------------------- |
| IP                       | Yes         | String  | None             | IP address of the Titus MSSQL server.                                                                           |
| Port                     | No          | Integer | 1433             | SQL Server port.                                                                                                |
| Domain                   | No          | String  | None             | Domain of the user account. Needed for Windows authentication.                                                  |
| Database                 | No          | String  | TITUS\_Reporting | Name of the Titus reporting database.                                                                           |
| Username                 | Yes         | String  | None             | Login name.                                                                                                     |
| Password                 | Conditional | String  | None             | Required for SQL authentication and for Kerberos mode `password`. Can be empty for Kerberos mode `keytab`.      |
| Use PyODBC Driver        | No          | Boolean | False            | Use PyODBC instead of pymssql. ODBC Driver 17 or 18 for SQL Server must be installed. Driver 17 is tried first. |
| Query Timeout            | No          | Integer | 300              | Seconds to wait for a query.                                                                                    |
| Batch Size               | No          | Integer | 300              | Rows fetched per batch.                                                                                         |
| With NOLOCK              | No          | Boolean | True             | Adds `WITH (NOLOCK)` to the query to avoid lock contention.                                                     |
| Auth Type                | No          | String  | SQL              | Set to Kerberos to use Active Directory authentication.                                                         |
| Kerberos Mode            | No          | String  | password         | `password` uses the username and password to get a ticket. `keytab` uses an uploaded keytab file.               |
| Kerberos Realm           | No          | String  | None             | AD realm in upper case, for example CORP.LOCAL. Can be empty if the username is in `user@REALM` form.           |
| KDC IP                   | No          | String  | None             | Host or IP of the Kerberos KDC, usually a domain controller.                                                    |
| Kerberos SPN             | No          | String  | None             | Optional service principal name override, for example `MSSQLSvc/sqlserver.corp.local:1433`.                     |
| Keytab                   | Conditional | File    | None             | Required when Kerberos Mode is `keytab`.                                                                        |
| Encrypt                  | No          | Boolean | True             | TLS between client and SQL Server. Applied only with Kerberos.                                                  |
| Trust Server Certificate | No          | Boolean | True             | Skip certificate chain validation. Applied only with Kerberos.                                                  |

## Troubleshooting

| Error message                                                                      | Cause                                                       | Fix                                          |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------- | -------------------------------------------- |
| No ODBC Driver found. Install 'ODBC Driver 17' or 'ODBC Driver 18' for SQL Server. | PyODBC or Kerberos is used and no ODBC driver is installed. | Install ODBC Driver 17 or 18 for SQL Server. |
| Password is required for SQL Server Authentication.                                | SQL authentication is selected with an empty password.      | Enter the password.                          |
| Keytab is required when kerberos\_mode is 'keytab'.                                | Kerberos keytab mode without a keytab.                      | Upload the keytab.                           |
| Password is required when kerberos\_mode is 'password'.                            | Kerberos password mode without a password.                  | Enter the password.                          |

## Change history

{% hint style="info" %}
Available starting from version 3.3.0.
{% endhint %}
