vault_ldap_secret_backend_library_set

Creates a library on an LDAP Secret Backend for Vault. Libraries create a pool of existing LDAP service accounts which can be checked out by users.

Example Usage

resource "vault_ldap_secret_backend" "config" {
  path          = "ldap"
  binddn        = "CN=Administrator,CN=Users,DC=corp,DC=example,DC=net"
  bindpass      = "SuperSecretPassw0rd"
  url           = "ldaps://localhost"
  insecure_tls  = "true"
  userdn        = "CN=Users,DC=corp,DC=example,DC=net"
}

resource "vault_ldap_secret_backend_library_set" "qa" {
  mount                        = vault_ldap_secret_backend.config.path
  name                         = "qa"
  service_account_names        = ["Bob", "Mary"]
  ttl                          = 60
  disable_check_in_enforcement = true
  max_ttl                      = 120
}

Argument Reference

The following arguments are supported:

Import

LDAP secret backend libraries can be imported using the path, e.g.

$ terraform import vault_ldap_secret_backend_library_set.qa ldap/library/bob