> 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/freeipa.md).

# FreeIPA

FreeIPA is an open-source identity management system for Linux and Unix environments. It provides Kerberos authentication, LDAP directory services, a certificate authority and policy management. OctoXLabs reads the enrolled hosts and the users.

## Use cases

* List all hosts enrolled in FreeIPA.

```
Adapters = freeipa
```

* Find enrolled hosts that have no EDR agent.

```
Adapters = freeipa AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                       | Port | Protocol                           |
| ------------------- | ------------------------------------------------- | ---- | ---------------------------------- |
| OctoXLabs connector | FreeIPA server (web UI and JSON-RPC under `/ipa`) | 443  | HTTPS (HTTP when Is secure is off) |

The port is not a parameter.

### Required permissions

| Scope or role           | Permission                     | Needed for        |
| ----------------------- | ------------------------------ | ----------------- |
| Registered FreeIPA user | Read access to users and hosts | Users and Devices |

The exact role is Not verified. The instruction only asks for a registered user.

## Create credentials in FreeIPA

{% stepper %}
{% step %}

### Create a user

1. In FreeIPA, go to **Identity** > **Users** and click **Add**.
2. Enter **First name**, **Last name** and **User login**, then click **Add** again.
3. The system sets a first-login password, or asks the user to create one.
   {% endstep %}

{% step %}

### Check the password

A registered user can check the password by running `kinit $USERNAME` in a terminal and entering the password.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type             | Default | Description                        |
| --------- | -------- | ---------------- | ------- | ---------------------------------- |
| Domain    | Yes      | Text             | None    | Host name of the FreeIPA server.   |
| Username  | Yes      | Text             | None    | A registered user.                 |
| Password  | Yes      | Text (sensitive) | None    | Password of the user.              |
| Is secure | No       | Boolean          | True    | Use HTTPS.                         |
| Timeout   | No       | Integer          | 30      | Seconds to wait for API responses. |

## Troubleshooting

| Error message | Cause                                        | Fix                                                        |
| ------------- | -------------------------------------------- | ---------------------------------------------------------- |
| Not verified  | The code has no adapter-specific error text. | Check the log for `Status Code`, `URL` and `Method` lines. |

## Change history

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