An API object that represents the cluster’s LDAP configuration.

NameType/ValueDescription
bind_dnstringDN used when binding with the LDAP server to run queries
bind_passstringPassword used when binding with the LDAP server to run queries
ca_certstringPEM-encoded CA certificate(s) used to validate TLS connections to the LDAP server
cache_ttlinteger (default: 300)Maximum TTL (in seconds) of cached entries
control_planeboolean (default: false)Use LDAP for user authentication/authorization in the control plane
data_planeboolean (default: false)Use LDAP for user authentication/authorization in the data plane
directory_timeout_sinteger (range: 5-60) (default: 5)The connection timeout to the LDAP server when authenticating a user, in seconds
dn_group_attrstringThe name of an attribute of the LDAP user entity that contains a list of the groups that user belongs to. (Mutually exclusive with “dn_group_query”)
dn_group_querycomplex objectAn LDAP search query for mapping from a user DN to the groups the user is a member of. The substring “%D” in the filter will be replaced with the user’s DN. (Mutually exclusive with “dn_group_attr”)
starttlsboolean (default: false)Use StartTLS negotiation for the LDAP connection
urisarray of stringsURIs of LDAP servers that only contain the schema, host, and port
user_dn_querycomplex objectAn LDAP search query for mapping from a username to a user DN. The substring “%u” in the filter will be replaced with the username. (Mutually exclusive with “user_dn_template”)
user_dn_templatestringA string template that maps between the username, provided to the cluster for authentication, and the LDAP DN. The substring “%u” will be replaced with the username. (Mutually exclusive with “user_dn_query”)