> 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/f/forcepoint-dlp.md).

# ForcePoint DLP

Forcepoint DLP protects sensitive data on endpoints, networks and cloud apps. OctoXLabs connects to the Microsoft SQL Server database of Forcepoint Data Security and reads the endpoint agent status records as devices. The adapter key is `force-point`.

## Use cases

* **Find endpoints with a DLP agent but no EDR agent.** List devices that Forcepoint DLP reports and CrowdStrike does not.

```
Adapters = force-point AND NOT Adapters = falcon-crowdstrike
```

* **Find endpoints missing from the directory.**

```
Adapters = force-point AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                    | Port                  | Protocol         |
| ------------------- | ------------------------------ | --------------------- | ---------------- |
| OctoXLabs connector | SQL Server host (IP parameter) | 1433 (Port parameter) | TDS (SQL Server) |

With Kerberos, the connector also needs to reach the key distribution center (KDC IP parameter). The KDC port is Not verified.

### Required permissions

| Scope or role | Permission                                        | Needed for               |
| ------------- | ------------------------------------------------- | ------------------------ |
| Database user | Select and List (read access to the devices data) | Running the device query |

The baseline says the user must have **Select** and **List** privileges and read access to the data. The query reads `dbo.PA_DYNAMIC_STATUS` and `dbo.PA_DYNAMIC_STATUS_PROPS`.

## Create credentials in Forcepoint DLP

{% stepper %}
{% step %}

### Create a login

In SQL Server Management Studio, open **Security**, right-click **Login** and choose **New Login**.
{% endstep %}

{% step %}

### Set authentication and database

Select the authentication used by the server. Fill in the details and select your database (for example `wbsn-data-security`) as **Default Database**.
{% endstep %}

{% step %}

### Save and sign in once

Save the user. Sign in to the database with this user once to avoid a first-login error.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                | Required    | Type    | Default  | Description                                                                                                      |
| ------------------------ | ----------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
| IP                       | Yes         | String  | None     | SQL Server IP address.                                                                                           |
| Port                     | No          | Integer | 1433     | SQL Server port.                                                                                                 |
| Domain                   | No          | String  | None     | Domain FQDN.                                                                                                     |
| Database                 | Yes         | String  | None     | Database name, for example `wbsn-data-security`.                                                                 |
| Username                 | Yes         | String  | None     | Database user.                                                                                                   |
| 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. Needs ODBC Driver 17 or 18 for SQL Server. The connector tries 17 first, then 18. |
| Batch Size               | No          | Integer | 300      | Rows fetched per batch.                                                                                          |
| Query Timeout            | No          | Integer | 60       | Maximum seconds for a query.                                                                                     |
| Auth Type                | No          | String  | SQL      | `SQL` or `Kerberos`.                                                                                             |
| Kerberos Mode            | No          | String  | password | `password` or `keytab`.                                                                                          |
| Kerberos Realm           | No          | String  | None     | AD realm in uppercase. Can be empty if the username is in `user@REALM` form.                                     |
| KDC IP                   | No          | String  | None     | Key distribution center host or IP.                                                                              |
| Kerberos SPN             | No          | String  | None     | SPN override.                                                                                                    |
| Keytab                   | Conditional | File    | None     | Required for Kerberos mode `keytab`.                                                                             |
| Encrypt                  | No          | Boolean | true     | TLS between client and 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 is on and no driver is installed. | Install the driver or turn off Use PyODBC Driver. |
| Kerberos config failed: SQL Server reports auth\_scheme='{scheme}'. Check SPN registration in AD and the Encrypt setting. | Kerberos fell back to another scheme.    | Check the SPN in AD and the Encrypt setting.      |
| Keytab is required when kerberos\_mode is 'keytab'.                                                                       | Keytab mode without a keytab file.       | Upload the keytab.                                |
| Password is required when kerberos\_mode is 'password'. / Password is required for SQL Server Authentication.             | Password missing.                        | Enter the password.                               |

## Change history
