GET /api/auth_source_ldaps
List all LDAP authentication sources

参数

参数名字 描述
search
选填

过滤结果


Value:

Must be String

order
选填

结果排序


Value:

Must be String

page
选填

页数


Value:

Must be String

per_page
选填

每个请求中的条目数


Value:

Must be String


GET /api/auth_source_ldaps/:id
Show an LDAP authentication source

参数

参数名字 描述
id
必填

Value:

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
Create an LDAP authentication source

参数

参数名字 描述
auth_source_ldap
必填

Value:

Must be a Hash

auth_source_ldap[name]
必填

Value:

Must be String

auth_source_ldap[host]
必填

Value:

Must be String

auth_source_ldap[port]
选填 , 允许空值

defaults to 389


Value:

Must be a number.

auth_source_ldap[account]
选填 , 允许空值

Value:

Must be String

auth_source_ldap[base_dn]
选填 , 允许空值

Value:

Must be String

auth_source_ldap[account_password]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_login]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_firstname]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_lastname]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_mail]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_photo]
选填 , 允许空值

Value:

Must be String

auth_source_ldap[onthefly_register]
选填 , 允许空值

Value:

Must be 'true' or 'false'

auth_source_ldap[usergroup_sync]
选填 , 允许空值

sync external user groups on login


Value:

Must be 'true' or 'false'

auth_source_ldap[tls]
选填 , 允许空值

Value:

Must be 'true' or 'false'

auth_source_ldap[groups_base]
选填 , 允许空值

groups base DN


Value:

Must be String

auth_source_ldap[server_type]
选填 , 允许空值

type of the LDAP server


Value:

Must be one of: free_ipa, active_directory, posix.

auth_source_ldap[ldap_filter]
选填 , 允许空值

LDAP 过滤器


Value:

Must be String


PUT /api/auth_source_ldaps/:id
Update an LDAP authentication source

参数

参数名字 描述
id
必填

Value:

Must be String

auth_source_ldap
必填

Value:

Must be a Hash

auth_source_ldap[name]
选填

Value:

Must be String

auth_source_ldap[host]
选填

Value:

Must be String

auth_source_ldap[port]
选填 , 允许空值

defaults to 389


Value:

Must be a number.

auth_source_ldap[account]
选填 , 允许空值

Value:

Must be String

auth_source_ldap[base_dn]
选填 , 允许空值

Value:

Must be String

auth_source_ldap[account_password]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_login]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_firstname]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_lastname]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_mail]
选填 , 允许空值

required if onthefly_register is true


Value:

Must be String

auth_source_ldap[attr_photo]
选填 , 允许空值

Value:

Must be String

auth_source_ldap[onthefly_register]
选填 , 允许空值

Value:

Must be 'true' or 'false'

auth_source_ldap[usergroup_sync]
选填 , 允许空值

sync external user groups on login


Value:

Must be 'true' or 'false'

auth_source_ldap[tls]
选填 , 允许空值

Value:

Must be 'true' or 'false'

auth_source_ldap[groups_base]
选填 , 允许空值

groups base DN


Value:

Must be String

auth_source_ldap[server_type]
选填 , 允许空值

type of the LDAP server


Value:

Must be one of: free_ipa, active_directory, posix.

auth_source_ldap[ldap_filter]
选填 , 允许空值

LDAP 过滤器


Value:

Must be String


PUT /api/auth_source_ldaps/:id/test
Test LDAP connection

参数

参数名字 描述
id
必填

Value:

Must be String


DELETE /api/auth_source_ldaps/:id
Delete an LDAP authentication source

参数

参数名字 描述
id
必填

Value:

Must be String