---
title: "Get LDAP settings"
method: GET
path: "/ldap"
tags: ["LDAP"]
---

# Get LDAP settings

`GET /ldap`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/ldap`
- Auth: API key in header `Authorization`

Returns LDAP settings

## Response `200`

Successful response

- object
  - `enabled` boolean, required: Determines whether LDAP is enabled or not
  - `state` string: LDAP client state. Sent if LDAP is enabled.
  - `hostname` string: Hostname. Sent if LDAP is enabled.
  - `port` number: Port. Sent if LDAP is enabled.
  - `username` string: Username. Sent if LDAP is enabled.
  - `base_dn` string: Base DN. Sent if LDAP is enabled.
  - `add_dn` string: Additional user DN. Sent if LDAP is enabled.
  - `ssl` boolean: Determines whether SSL is enabled or not. Sent if LDAP is enabled.

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
