Hashicorp Vault LDAP Authentication

The idea is:

It would be nice to extend the current built-in HashiCorp Vault authentication methods to include LDAP.

My use case:

It would be nice to extend the current built-in HashiCorp Vault authentication methods to include LDAP.

I think it would be beneficial to add this because:

It would allow us to use ldap instead of creating an approle or local user in vault.

Any resources to support this?

Are you willing to work on this?

Quick clarification that may save you some time: n8n’s built-in HashiCorp Vault credential supports Token and AppRole authentication only, and Vault’s LDAP auth method (auth/ldap) is meant for humans logging in, not for services. For a machine like n8n the intended path is AppRole: create a role with a policy scoped to just the secrets n8n reads, then give n8n the role_id and a secret_id, which avoids both a static user and a hardcoded token. If you specifically need LDAP-backed identity, run the login outside n8n (for example a script doing vault write auth/ldap/login, or Vault Agent using JWT/OIDC) and hand n8n the resulting token, but note the short token TTL then becomes a renewal problem you must solve. It is also worth filing this on the n8n GitHub repo as a feature request, since community contributions can add new nodes or credentials but cannot easily extend the built-in Vault credential.

1 Like