LDAPProviders

Authorize an LDAP provider and retrieve a token

post

Authorizes the LDAP provider by slug and returns an authorization token.

Authorizations
AuthorizationstringRequired
Path parameters
slugstringRequired

The slug of the resource.

Example: obj_slug
Body
usernamestringOptional

Username to authorize

Example: john.doe
passwordstringOptional

Password for the given username

Example: password123
Responses
chevron-right
200

Authorization successful, returns the token.

application/json
post
/api/v1/ldap/{slug}/authorize/

Retrieve LDAP provider

get

Retrieve details for a specific LDAP provider by slug.

Authorizations
AuthorizationstringRequired
Path parameters
slugstringRequired

The slug of the resource.

Example: obj_slug
Responses
chevron-right
200

LDAP provider details

application/json
get
/api/v1/ldap/{slug}/

Update LDAP provider

put

Update an existing LDAP provider. Only superusers can perform this action.

Authorizations
AuthorizationstringRequired
Path parameters
slugstringRequired

The slug of the resource.

Example: obj_slug
Body
idinteger · int64Optional

LDAP Provider ID

namestring · max: 256Optional

Name of the LDAP provider.

Example: Active Directory
slugstring · max: 256Optional

Unique slug for the LDAP provider.

Example: active_directory
iconstring · binaryOptional

Icon for the LDAP provider.

hoststring · urlOptional

Host URL for the LDAP provider.

Example: ldap://ldap.example.com
portinteger · max: 65535Optional

Port number to connect to the LDAP server.

Example: 389
use_sslbooleanOptional

Indicates whether SSL is used for the LDAP connection.

Example: true
bind_dnstring · max: 256Optional

The distinguished name (DN) for binding to the LDAP server.

Example: cn=admin,dc=example,dc=com
bind_passwordstring · max: 512Optional

Password for the LDAP bind user.

Example: secure_password
base_dnstring · max: 256Optional

The base distinguished name (DN) for LDAP searches.

Example: dc=example,dc=com
attribute_mapobjectOptional

A mapping of LDAP attributes to system fields.

Example: {"uid":"username","mail":"email"}
is_activebooleanOptional

Indicates if the LDAP provider is active.

Example: true
Responses
chevron-right
200

LDAP provider updated successfully

application/json
put
/api/v1/ldap/{slug}/

Delete LDAP provider

delete

Delete an existing LDAP provider. Only superusers can perform this action.

Authorizations
AuthorizationstringRequired
Path parameters
slugstringRequired

The slug of the resource.

Example: obj_slug
Responses
delete
/api/v1/ldap/{slug}/

No content

List LDAP providers

get

Retrieve a list of all LDAP providers. Non-superusers only can see active providers.

Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

List of LDAP providers

application/json
get
/api/v1/ldap/

Create LDAP provider

post

Create a new LDAP provider. Only superusers can perform this action.

Authorizations
AuthorizationstringRequired
Body
idinteger · int64Optional

LDAP Provider ID

namestring · max: 256Optional

Name of the LDAP provider.

Example: Active Directory
slugstring · max: 256Optional

Unique slug for the LDAP provider.

Example: active_directory
iconstring · binaryOptional

Icon for the LDAP provider.

hoststring · urlOptional

Host URL for the LDAP provider.

Example: ldap://ldap.example.com
portinteger · max: 65535Optional

Port number to connect to the LDAP server.

Example: 389
use_sslbooleanOptional

Indicates whether SSL is used for the LDAP connection.

Example: true
bind_dnstring · max: 256Optional

The distinguished name (DN) for binding to the LDAP server.

Example: cn=admin,dc=example,dc=com
bind_passwordstring · max: 512Optional

Password for the LDAP bind user.

Example: secure_password
base_dnstring · max: 256Optional

The base distinguished name (DN) for LDAP searches.

Example: dc=example,dc=com
attribute_mapobjectOptional

A mapping of LDAP attributes to system fields.

Example: {"uid":"username","mail":"email"}
is_activebooleanOptional

Indicates if the LDAP provider is active.

Example: true
Responses
post
/api/v1/ldap/

Last updated

Was this helpful?