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

# FortiAuthenticator

FortiAuthenticator is Fortinet's identity and access management appliance. It provides central authentication, two-factor authentication and RADIUS and LDAP services. OctoXLabs reads its user directory: local users, and optionally LDAP and RADIUS users imported into the appliance.

## Use cases

* List all identities held in FortiAuthenticator.

```
Adapters = forti-authenticator
```

* Find FortiAuthenticator users that are not in Active Directory.

```
Adapters = forti-authenticator AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                             | Port                        | Protocol                           |
| ------------------- | --------------------------------------- | --------------------------- | ---------------------------------- |
| OctoXLabs connector | FortiAuthenticator appliance (REST API) | 443 (default, configurable) | HTTPS (HTTP when Is secure is off) |

### Required permissions

| Scope or role      | Permission                                           | Needed for              |
| ------------------ | ---------------------------------------------------- | ----------------------- |
| Administrator role | Web service access enabled, valid e-mail address set | REST API access         |
| Admin profile      | Can view local users                                 | Local users             |
| Admin profile      | View permission for LDAP users                       | LDAP users (optional)   |
| Admin profile      | View permission for RADIUS users                     | RADIUS users (optional) |

## Create credentials in FortiAuthenticator

{% stepper %}
{% step %}

### Create or edit an administrator

Use an account with the **Administrator** role. Edit the admin user, enable **Web service access** and set a valid e-mail address.
{% endstep %}

{% step %}

### Get the API Web Service Access Key

The appliance e-mails the **API Web Service Access Key** to the address on the admin user. Use this key as the password in OctoXLabs. It is not the GUI login password.
{% endstep %}

{% step %}

### Check the admin profile

Make sure the profile includes **Can view local users**. To collect LDAP or RADIUS users, add the matching view permissions.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter          | Required | Type             | Default | Description                                              |
| ------------------ | -------- | ---------------- | ------- | -------------------------------------------------------- |
| Ip                 | Yes      | Text             | None    | IP address or host name of the appliance.                |
| Port               | No       | Integer          | 443     | Management port.                                         |
| Username           | Yes      | Text             | None    | Administrator account.                                   |
| Password           | Yes      | Text (sensitive) | None    | API Web Service Access Key.                              |
| Fetch local users  | No       | Boolean          | True    | Collect local user accounts.                             |
| Fetch LDAP users   | No       | Boolean          | False   | Collect imported remote LDAP and Active Directory users. |
| Fetch RADIUS users | No       | Boolean          | False   | Collect imported remote RADIUS users.                    |
| Is secure          | No       | Boolean          | True    | Use SSL.                                                 |
| Timeout            | No       | Integer          | 30      | Seconds to wait for API responses.                       |

## Troubleshooting

| Error message                                                                     | Cause                            | Fix                                                      |
| --------------------------------------------------------------------------------- | -------------------------------- | -------------------------------------------------------- |
| `At least one user source (local, LDAP, or RADIUS) must be enabled.`              | All three fetch options are off. | Turn on at least one user source.                        |
| `Could not fetch <source> users after <n> record(s), skipping: ...` (log warning) | One source failed.               | Check the matching view permission in the admin profile. |

## Change history

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