GET /api/auth_source_ldaps 403 { "error": { "message": "Access denied", "details": "Missing one of the required permissions: view_authenticators" } }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
page optional |
paginate results Validations:
|
per_page optional |
number of entries per request Validations:
|
Field name | Type | 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": "2018-11-15 19:01:27 UTC", "updated_at": "2018-11-15 19:01:27 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 } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
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": "2018-11-15 19:02:51 UTC", "updated_at": "2018-11-15 19:02:51 UTC", "id": 980190963, "type": "AuthSourceLdap", "name": "ldap2", "external_usergroups": [], "locations": [], "organizations": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
auth_source_ldap required |
Validations:
|
auth_source_ldap[name] required |
Validations:
|
auth_source_ldap[host] required |
Validations:
|
auth_source_ldap[port] optional , nil allowed |
defaults to 389 Validations:
|
auth_source_ldap[account] optional , nil allowed |
Validations:
|
auth_source_ldap[base_dn] optional , nil allowed |
Validations:
|
auth_source_ldap[account_password] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_login] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_firstname] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_lastname] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_mail] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_photo] optional , nil allowed |
Validations:
|
auth_source_ldap[onthefly_register] optional , nil allowed |
Validations:
|
auth_source_ldap[usergroup_sync] optional , nil allowed |
sync external user groups on login Validations:
|
auth_source_ldap[tls] optional , nil allowed |
Validations:
|
auth_source_ldap[groups_base] optional , nil allowed |
groups base DN Validations:
|
auth_source_ldap[use_netgroups] optional , nil allowed |
use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa Validations:
|
auth_source_ldap[server_type] optional , nil allowed |
type of the LDAP server Validations:
|
auth_source_ldap[ldap_filter] optional , nil allowed |
LDAP filter Validations:
|
auth_source_ldap[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
auth_source_ldap[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
PUT /api/auth_source_ldaps/980190962-ldap-server { "organization_names": [ "Organization 1" ], "location_ids": [ 255093256 ], "auth_source_ldap": { "organization_names": [ "Organization 1" ], "location_ids": [ 255093256 ] } } 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": "2018-11-15 19:01:27 UTC", "updated_at": "2018-11-15 19:01:27 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 } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|
auth_source_ldap required |
Validations:
|
auth_source_ldap[name] optional |
Validations:
|
auth_source_ldap[host] optional |
Validations:
|
auth_source_ldap[port] optional , nil allowed |
defaults to 389 Validations:
|
auth_source_ldap[account] optional , nil allowed |
Validations:
|
auth_source_ldap[base_dn] optional , nil allowed |
Validations:
|
auth_source_ldap[account_password] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_login] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_firstname] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_lastname] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_mail] optional , nil allowed |
required if onthefly_register is true Validations:
|
auth_source_ldap[attr_photo] optional , nil allowed |
Validations:
|
auth_source_ldap[onthefly_register] optional , nil allowed |
Validations:
|
auth_source_ldap[usergroup_sync] optional , nil allowed |
sync external user groups on login Validations:
|
auth_source_ldap[tls] optional , nil allowed |
Validations:
|
auth_source_ldap[groups_base] optional , nil allowed |
groups base DN Validations:
|
auth_source_ldap[use_netgroups] optional , nil allowed |
use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa Validations:
|
auth_source_ldap[server_type] optional , nil allowed |
type of the LDAP server Validations:
|
auth_source_ldap[ldap_filter] optional , nil allowed |
LDAP filter Validations:
|
auth_source_ldap[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
auth_source_ldap[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
PUT /api/auth_source_ldaps/980190962-ldap-server/test { "auth_source_ldap": {} } 200 { "id": 980190962, "type": "AuthSourceLdap", "name": "ldap-server", "success": true, "message": "success" }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
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": "2018-11-15T19:01:27.691Z", "updated_at": "2018-11-15T19:01:27.691Z", "ldap_filter": null, "attr_photo": null, "server_type": "posix", "groups_base": null, "usergroup_sync": true, "use_netgroups": false }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
id required |
Validations:
|