sources_ldap_list
GET/api/v3//sources/ldap/
LDAP Source Viewset
Request
Query Parameters
additional_group_dn string
additional_user_dn string
base_dn string
bind_cn string
client_certificate uuid
enabled boolean
group_membership_field string
group_object_filter string
group_property_mappings uuid[]
name string
object_uniqueness_field string
ordering string
Which field to use when ordering the results.
page integer
A page number within the paginated result set.
page_size integer
Number of results to return per page.
password_login_update_internal_password boolean
pbm_uuid uuid
peer_certificate uuid
search string
A search term.
server_uri string
slug string
sni boolean
start_tls boolean
sync_groups boolean
sync_parent_group uuid
sync_users boolean
sync_users_password boolean
user_object_filter string
user_property_mappings uuid[]
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
pagination objectrequired
results object[]required
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"slug": "string",
"enabled": true,
"authentication_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"enrollment_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user_property_mappings": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"group_property_mappings": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"policy_engine_mode": "all",
"user_matching_mode": "identifier",
"managed": "string",
"user_path_template": "string",
"icon": "string",
"server_uri": "string",
"peer_certificate": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"client_certificate": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"bind_cn": "string",
"start_tls": true,
"sni": true,
"base_dn": "string",
"additional_user_dn": "string",
"additional_group_dn": "string",
"user_object_filter": "string",
"group_object_filter": "string",
"group_membership_field": "string",
"object_uniqueness_field": "string",
"password_login_update_internal_password": true,
"sync_users": true,
"sync_users_password": true,
"sync_groups": true,
"sync_parent_group": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"connectivity": {}
}
]
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v3/sources/ldap/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());