{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-authconfig-ldap-servers-schema.json",
  "title": "authconfigLdapServers",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-authconfig-api-openapi.yml#/components/schemas/authconfigLdapServers",
  "type": "object",
  "properties": {
    "ldap": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/authconfigLdapServer"
      }
    }
  },
  "$defs": {
    "authconfigLdapServer": {
      "type": "object",
      "required": [
        "name",
        "ldapUrl",
        "bindDn",
        "bindCredential",
        "baseDn",
        "userFilter",
        "dnFormat",
        "principalAttributeId",
        "policyId",
        "order",
        "connectTimeout"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the connection"
        },
        "ldapUrl": {
          "type": "string",
          "description": "URL of the LDAP server"
        },
        "bindDn": {
          "type": "string",
          "description": "Credentials to bind when initializing connections"
        },
        "bindCredential": {
          "type": "string",
          "description": "Credentials to bind when initializing connections"
        },
        "baseDn": {
          "type": "string",
          "description": "Search for the bind user admin will be done starting at the base Distinguished Name (DN)"
        },
        "userFilter": {
          "type": "string",
          "description": "filter to match the users."
        },
        "dnFormat": {
          "type": "string",
          "description": "Format for the Distinguished Name (DN)"
        },
        "principalAttributeId": {
          "type": "string",
          "description": "Key in LDAP for the username of the user"
        },
        "policyId": {
          "type": "string",
          "description": "Key in LDAP for the Crosswork role mapping"
        },
        "order": {
          "type": "string",
          "description": "Priority order of the LDAP server"
        },
        "connectTimeout": {
          "type": "integer",
          "description": "Connection timeout in milliseconds"
        }
      }
    }
  }
}