GET /api/auth_source_ldaps 200 { "total": 1, "subtotal": 1, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "host": "ldap", "port": 123, "account": null, "base_dn": "dn=x,dn=y", "ldap_filter": null, "attr_login": "uid", "attr_firstname": "givenName", "attr_lastname": "sn", "attr_mail": "mail", "attr_photo": null, "onthefly_register": true, "usergroup_sync": true, "tls": true, "server_type": "posix", "groups_base": null, "use_netgroups": false, "created_at": "2019-11-07 08:51:03 UTC", "updated_at": "2019-11-07 08:51:03 UTC", "id": 980190962, "type": "AuthSourceLdap", "name": "ldap-server", "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] } ] }
Nome parametro | Descrizione |
---|---|
location_id opzionale |
Scopo per posizioni Validations:
|
organization_id opzionale |
Scopo per organizzazioni Validations:
|
search opzionale |
filtra i risultati Validations:
|
order opzionale |
Sort field and order, eg. ‘id DESC’ Validations:
|
page opzionale |
Numero pagina, iniziando da 1 Validations:
|
per_page opzionale |
Numero di risultati per pagina da ritornare Validations:
|
Field name | Tipo | Possible values |
---|---|---|
location | string | |
location_id | integer | |
name | string | |
organization | string | |
organization_id | integer |
GET /api/auth_source_ldaps/980190962-ldap-server 200 { "host": "ldap", "port": 123, "account": null, "base_dn": "dn=x,dn=y", "ldap_filter": null, "attr_login": "uid", "attr_firstname": "givenName", "attr_lastname": "sn", "attr_mail": "mail", "attr_photo": null, "onthefly_register": true, "usergroup_sync": true, "tls": true, "server_type": "posix", "groups_base": null, "use_netgroups": false, "created_at": "2019-11-07 08:51:03 UTC", "updated_at": "2019-11-07 08:51:03 UTC", "id": 980190962, "type": "AuthSourceLdap", "name": "ldap-server", "external_usergroups": [], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] }
Nome parametro | Descrizione |
---|---|
location_id opzionale |
Set the current location context for the request Validations:
|
organization_id opzionale |
Set the current organization context for the request Validations:
|
id richiesto |
Validations:
|
POST /api/auth_source_ldaps { "auth_source_ldap": { "name": "ldap2", "host": "ldap2", "server_type": "posix" } } 201 { "host": "ldap2", "port": 389, "account": null, "base_dn": null, "ldap_filter": null, "attr_login": null, "attr_firstname": null, "attr_lastname": null, "attr_mail": null, "attr_photo": null, "onthefly_register": false, "usergroup_sync": true, "tls": false, "server_type": "posix", "groups_base": null, "use_netgroups": false, "created_at": "2019-11-07 08:51:15 UTC", "updated_at": "2019-11-07 08:51:15 UTC", "id": 980190964, "type": "AuthSourceLdap", "name": "ldap2", "external_usergroups": [], "locations": [], "organizations": [] }
Nome parametro | Descrizione |
---|---|
location_id opzionale |
Set the current location context for the request Validations:
|
organization_id opzionale |
Set the current organization context for the request Validations:
|
auth_source_ldap richiesto |
Validations:
|
auth_source_ldap[name] richiesto |
Validations:
|
auth_source_ldap[host] richiesto |
Validations:
|
auth_source_ldap[port] opzionale , consentito nil |
esegui il defualt su 389 Validations:
|
auth_source_ldap[account] opzionale , consentito nil |
Validations:
|
auth_source_ldap[base_dn] opzionale , consentito nil |
Validations:
|
auth_source_ldap[account_password] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_login] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_firstname] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_lastname] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_mail] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_photo] opzionale , consentito nil |
Validations:
|
auth_source_ldap[onthefly_register] opzionale , consentito nil |
Validations:
|
auth_source_ldap[usergroup_sync] opzionale , consentito nil |
sync external user groups on login Validations:
|
auth_source_ldap[tls] opzionale , consentito nil |
Validations:
|
auth_source_ldap[groups_base] opzionale , consentito nil |
groups base DN Validations:
|
auth_source_ldap[use_netgroups] opzionale , consentito nil |
use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa Validations:
|
auth_source_ldap[server_type] opzionale , consentito nil |
type of the LDAP server Validations:
|
auth_source_ldap[ldap_filter] opzionale , consentito nil |
Filtro LDAP Validations:
|
auth_source_ldap[location_ids] opzionale , consentito nil |
SOSTITUIRE le posizioni con gli id dati Validations:
|
auth_source_ldap[organization_ids] opzionale , consentito nil |
SOSTITUIRE le organizzazioni con gli id dati Validations:
|
PUT /api/auth_source_ldaps/980190962-ldap-server { "auth_source_ldap": { "name": "ldap2", "host": "ldap2", "server_type": "posix" } } 200 { "host": "ldap2", "port": 123, "account": null, "base_dn": "dn=x,dn=y", "ldap_filter": null, "attr_login": "uid", "attr_firstname": "givenName", "attr_lastname": "sn", "attr_mail": "mail", "attr_photo": null, "onthefly_register": true, "usergroup_sync": true, "tls": true, "server_type": "posix", "groups_base": null, "use_netgroups": false, "created_at": "2019-11-07 08:51:03 UTC", "updated_at": "2019-11-07 08:51:15 UTC", "id": 980190962, "type": "AuthSourceLdap", "name": "ldap2", "external_usergroups": [], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] }
Nome parametro | Descrizione |
---|---|
location_id opzionale |
Set the current location context for the request Validations:
|
organization_id opzionale |
Set the current organization context for the request Validations:
|
id richiesto |
Validations:
|
auth_source_ldap richiesto |
Validations:
|
auth_source_ldap[name] opzionale |
Validations:
|
auth_source_ldap[host] opzionale |
Validations:
|
auth_source_ldap[port] opzionale , consentito nil |
esegui il defualt su 389 Validations:
|
auth_source_ldap[account] opzionale , consentito nil |
Validations:
|
auth_source_ldap[base_dn] opzionale , consentito nil |
Validations:
|
auth_source_ldap[account_password] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_login] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_firstname] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_lastname] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_mail] opzionale , consentito nil |
necessario se onthefly_register è su true Validations:
|
auth_source_ldap[attr_photo] opzionale , consentito nil |
Validations:
|
auth_source_ldap[onthefly_register] opzionale , consentito nil |
Validations:
|
auth_source_ldap[usergroup_sync] opzionale , consentito nil |
sync external user groups on login Validations:
|
auth_source_ldap[tls] opzionale , consentito nil |
Validations:
|
auth_source_ldap[groups_base] opzionale , consentito nil |
groups base DN Validations:
|
auth_source_ldap[use_netgroups] opzionale , consentito nil |
use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa Validations:
|
auth_source_ldap[server_type] opzionale , consentito nil |
type of the LDAP server Validations:
|
auth_source_ldap[ldap_filter] opzionale , consentito nil |
Filtro LDAP Validations:
|
auth_source_ldap[location_ids] opzionale , consentito nil |
SOSTITUIRE le posizioni con gli id dati Validations:
|
auth_source_ldap[organization_ids] opzionale , consentito nil |
SOSTITUIRE le organizzazioni con gli id dati Validations:
|
PUT /api/auth_source_ldaps/980190962-ldap-server/test { "auth_source_ldap": {} } 500 { "error": { "message": "wrong number of arguments (given 0, expected 1+)" } }
Nome parametro | Descrizione |
---|---|
location_id opzionale |
Set the current location context for the request Validations:
|
organization_id opzionale |
Set the current organization context for the request Validations:
|
id richiesto |
Validations:
|
DELETE /api/auth_source_ldaps/980190962 { "auth_source_ldap": {} } 200 { "id": 980190962, "name": "ldap-server", "host": "ldap", "port": 123, "account": null, "account_password": null, "base_dn": "dn=x,dn=y", "attr_login": "uid", "attr_firstname": "givenName", "attr_lastname": "sn", "attr_mail": "mail", "onthefly_register": true, "tls": true, "created_at": "2019-11-07T08:51:03.056Z", "updated_at": "2019-11-07T08:51:03.056Z", "ldap_filter": null, "attr_photo": null, "server_type": "posix", "groups_base": null, "usergroup_sync": true, "use_netgroups": false }
Nome parametro | Descrizione |
---|---|
location_id opzionale |
Set the current location context for the request Validations:
|
organization_id opzionale |
Set the current organization context for the request Validations:
|
id richiesto |
Validations:
|