HashiCorp Vault · Capability

HashiCorp Vault Vault Auth Methods API — LDAP

HashiCorp Vault Vault Auth Methods API — LDAP. 1 operations. Lead operation: HashiCorp Vault Login with LDAP. Self-contained Naftiko capability covering one Hvault business surface.

Run with Naftiko HvaultLDAP

What You Can Do

POST
Loginwithldap — HashiCorp Vault Login with LDAP
/v1/auth/ldap/login/{username}

MCP Tools

hashicorp-vault-login-ldap

HashiCorp Vault Login with LDAP

Capability Spec

auth-methods-ldap.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HashiCorp Vault Vault Auth Methods API — LDAP
  description: 'HashiCorp Vault Vault Auth Methods API — LDAP. 1 operations. Lead operation: HashiCorp Vault Login with LDAP.
    Self-contained Naftiko capability covering one Hvault business surface.'
  tags:
  - Hvault
  - LDAP
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HVAULT_API_KEY: HVAULT_API_KEY
capability:
  consumes:
  - type: http
    namespace: auth-methods-ldap
    baseUri: https://vault.example.com/v1
    description: HashiCorp Vault Vault Auth Methods API — LDAP business capability. Self-contained, no shared references.
    resources:
    - name: auth-ldap-login-username
      path: /auth/ldap/login/{username}
      operations:
      - name: loginwithldap
        method: POST
        description: HashiCorp Vault Login with LDAP
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: LDAP username
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-Vault-Token
      value: '{{env.HVAULT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: auth-methods-ldap-rest
    port: 8080
    description: REST adapter for HashiCorp Vault Vault Auth Methods API — LDAP. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/auth/ldap/login/{username}
      name: auth-ldap-login-username
      description: REST surface for auth-ldap-login-username.
      operations:
      - method: POST
        name: loginwithldap
        description: HashiCorp Vault Login with LDAP
        call: auth-methods-ldap.loginwithldap
        with:
          username: rest.username
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: auth-methods-ldap-mcp
    port: 9090
    transport: http
    description: MCP adapter for HashiCorp Vault Vault Auth Methods API — LDAP. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: hashicorp-vault-login-ldap
      description: HashiCorp Vault Login with LDAP
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: auth-methods-ldap.loginwithldap
      with:
        username: tools.username
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.