---
title: "PATCH /api/v1/auth/ldap-auth/identities/{identityId}"
method: PATCH
path: "/api/v1/auth/ldap-auth/identities/{identityId}"
tags: ["LDAP Auth"]
---

# PATCH /api/v1/auth/ldap-auth/identities/{identityId}

`PATCH /api/v1/auth/ldap-auth/identities/{identityId}`

Update LDAP Auth configuration on machine identity

## Path parameters

- `identityId` string, required

## Request body

- object
  - `url` string — The new URL of the LDAP server.
  - `bindDN` string — The new DN of the user to bind to the LDAP server.
  - `bindPass` string — The new password of the user to bind to the LDAP server.
  - `searchBase` string — The new base DN to search for the LDAP user.
  - `templateId` string — The ID of the identity auth template to update the configuration to.
  - `searchFilter` string — The new filter to use to search for the LDAP user.
  - `allowedFields` object[] — The comma-separated list of allowed fields to return from the LDAP user.
    - `key` string, required
    - `value` string, required
  - `accessTokenTrustedIps` object[] — The new IPs or CIDR ranges that access tokens can be used from.
    - `ipAddress` string, required
  - `accessTokenTTL` integer — The new lifetime for an access token in seconds.
  - `accessTokenNumUsesLimit` integer — The new maximum number of times that an access token can be used.
  - `accessTokenMaxTTL` integer — The new maximum lifetime for an access token in seconds.
  - `lockoutEnabled` boolean — Whether the lockout feature is enabled.
  - `lockoutThreshold` number — The amount of times login must fail before locking the identity auth method.
  - `lockoutDurationSeconds` number — How long an identity auth method lockout lasts.
  - `lockoutCounterResetSeconds` number — How long to wait from the most recent failed login until resetting the lockout counter.

## Response `200`

Default Response

- object
  - `identityLdapAuth` object, required
    - `id` string, uuid, required
    - `accessTokenTTL` number
    - `accessTokenMaxTTL` number
    - `accessTokenNumUsesLimit` number
    - `accessTokenTrustedIps` unknown
    - `identityId` string, uuid, required
    - `url` string, required
    - `searchBase` string, required
    - `searchFilter` string, required
    - `allowedFields` unknown
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `accessTokenPeriod` number
    - `templateId` string, uuid, nullable
    - `lockoutEnabled` boolean
    - `lockoutThreshold` number
    - `lockoutDurationSeconds` number
    - `lockoutCounterResetSeconds` number

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/885aef3e6c11/schema)
