{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-ldap-schema-template-xo-schema.json",
  "title": "LdapSchemaTemplateXo",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/nexus-openapi.json#/components/schemas/LdapSchemaTemplateXo",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Template name"
    },
    "userBaseDn": {
      "type": "string",
      "description": "The relative DN where users are found"
    },
    "userSubtree": {
      "type": "boolean",
      "description": "Whether to include subtrees when searching for users"
    },
    "userObjectClass": {
      "type": "string",
      "description": "LDAP object class for users"
    },
    "userLdapFilter": {
      "type": "string",
      "description": "Optional LDAP filter to limit user search"
    },
    "userIdAttribute": {
      "type": "string",
      "description": "LDAP attribute containing the user ID"
    },
    "userRealNameAttribute": {
      "type": "string",
      "description": "LDAP attribute containing the user's real name"
    },
    "userEmailAddressAttribute": {
      "type": "string",
      "description": "LDAP attribute containing the user's email address"
    },
    "userPasswordAttribute": {
      "type": "string",
      "description": "LDAP attribute containing the user's password"
    },
    "ldapGroupsAsRoles": {
      "type": "boolean",
      "description": "Whether LDAP groups should be mapped as roles"
    },
    "groupType": {
      "type": "string",
      "description": "Group type: 'static' or 'dynamic'"
    },
    "groupBaseDn": {
      "type": "string",
      "description": "The relative DN where groups are found"
    },
    "groupSubtree": {
      "type": "boolean",
      "description": "Whether to include subtrees when searching for groups"
    },
    "groupObjectClass": {
      "type": "string",
      "description": "LDAP object class for groups"
    },
    "groupIdAttribute": {
      "type": "string",
      "description": "LDAP attribute containing the group ID"
    },
    "groupMemberAttribute": {
      "type": "string",
      "description": "LDAP attribute containing group member references"
    },
    "groupMemberFormat": {
      "type": "string",
      "description": "Format of group member attribute values"
    },
    "userMemberOfAttribute": {
      "type": "string",
      "description": "LDAP attribute on user containing group membership (for dynamic groups)"
    }
  }
}