The stored directory configuration — never the bind password.
const url = 'https://example.com/api/v1/settings/ldap';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/settings/ldap \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The directory configuration, or null when none is saved
The directory configuration, or null when none has been saved.
object
null rather than a 404: “not configured” is the normal state of a fresh installation, and
the settings form wants to render its empty self rather than an error.
object
The operator-supplied CA certificate, in PEM. A certificate is public, so unlike the bind password it round-trips through the form rather than being write-only.
True once a bind password has been stored, so the form can say “set” without revealing it.
object
How the connection is protected. Two variants, both TLS — there is deliberately no plaintext
option, so ldap:// cannot be configured into existence and the bind password cannot cross the
wire in the clear. Adding one later would be a certificate-verification-disable flag by another
name and needs the same argument (ADR-041 decision 2).
Example
{ "config": { "security": "ldaps" }}No valid bearer token
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Role lacks the user-administration permission
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}This deployment has no directory store
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}