GET /api/auth_source_ldaps
列出所有 LDAP 的認證來源

GET /api/locations/:location_id/auth_source_ldaps
List LDAP authentication sources per location

GET /api/organizations/:organization_id/auth_source_ldaps
List LDAP authentication sources per organization

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

search
選填

篩選結果

Validations:

  • Must be a String

order
選填

排序結果

Validations:

  • Must be a String

page
選填

編頁結果

Validations:

  • Must be a String

per_page
選填

每個請求的項目數量

Validations:

  • Must be a String


GET /api/auth_source_ldaps/:id
顯示一項 LDAP 認證來源

參數

參數名字 描述
id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/auth_source_ldaps
建立 LDAP 認證來源

參數

參數名字 描述
auth_source_ldap
必填

Validations:

  • Must be a Hash

auth_source_ldap[name]
必填

Validations:

  • Must be a String

auth_source_ldap[host]
必填

Validations:

  • Must be a String

auth_source_ldap[port]
選填 , 允許空值

預設為 389

Validations:

  • Must be a number.

auth_source_ldap[account]
選填 , 允許空值

Validations:

  • Must be a String

auth_source_ldap[base_dn]
選填 , 允許空值

Validations:

  • Must be a String

auth_source_ldap[account_password]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_login]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_firstname]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_lastname]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_mail]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_photo]
選填 , 允許空值

Validations:

  • Must be a String

auth_source_ldap[onthefly_register]
選填 , 允許空值

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[usergroup_sync]
選填 , 允許空值

登入時同步外部使用者群組

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[tls]
選填 , 允許空值

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[groups_base]
選填 , 允許空值

群組基礎 DN

Validations:

  • Must be a String

auth_source_ldap[use_netgroups]
選填 , 允許空值

use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[server_type]
選填 , 允許空值

LDAP 伺服器類型

Validations:

  • Must be one of: free_ipa, active_directory, posix.

auth_source_ldap[ldap_filter]
選填 , 允許空值

LDAP過濾器

Validations:

  • Must be a String

auth_source_ldap[location_ids]
選填 , 允許空值

將位置取代為特定 ID

Validations:

  • Must be an array of any type

auth_source_ldap[organization_ids]
選填 , 允許空值

將組織取代為特定 ID。

Validations:

  • Must be an array of any type


PUT /api/auth_source_ldaps/:id
更新 LDAP 認證來源

參數

參數名字 描述
id
必填

Validations:

  • Must be a String

auth_source_ldap
必填

Validations:

  • Must be a Hash

auth_source_ldap[name]
選填

Validations:

  • Must be a String

auth_source_ldap[host]
選填

Validations:

  • Must be a String

auth_source_ldap[port]
選填 , 允許空值

預設為 389

Validations:

  • Must be a number.

auth_source_ldap[account]
選填 , 允許空值

Validations:

  • Must be a String

auth_source_ldap[base_dn]
選填 , 允許空值

Validations:

  • Must be a String

auth_source_ldap[account_password]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_login]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_firstname]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_lastname]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_mail]
選填 , 允許空值

若 onthefly_register 為 true 的話便需要

Validations:

  • Must be a String

auth_source_ldap[attr_photo]
選填 , 允許空值

Validations:

  • Must be a String

auth_source_ldap[onthefly_register]
選填 , 允許空值

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[usergroup_sync]
選填 , 允許空值

登入時同步外部使用者群組

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[tls]
選填 , 允許空值

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[groups_base]
選填 , 允許空值

群組基礎 DN

Validations:

  • Must be a String

auth_source_ldap[use_netgroups]
選填 , 允許空值

use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa

Validations:

  • Must be one of: true, false, 1, 0

auth_source_ldap[server_type]
選填 , 允許空值

LDAP 伺服器類型

Validations:

  • Must be one of: free_ipa, active_directory, posix.

auth_source_ldap[ldap_filter]
選填 , 允許空值

LDAP過濾器

Validations:

  • Must be a String

auth_source_ldap[location_ids]
選填 , 允許空值

將位置取代為特定 ID

Validations:

  • Must be an array of any type

auth_source_ldap[organization_ids]
選填 , 允許空值

將組織取代為特定 ID。

Validations:

  • Must be an array of any type


PUT /api/auth_source_ldaps/:id/test
測試 LDAP 連線

參數

參數名字 描述
id
必填

Validations:

  • Must be a String


DELETE /api/auth_source_ldaps/:id
刪除 LDAP 認證來源

參數

參數名字 描述
id
必填

Validations:

  • Must be a String