GET /api/auth_source_ldaps
List all authsource ldaps

参数

参数名字 描述
page
选填

编页结果

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be String


GET /api/auth_source_ldaps/:id
Show an authsource 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
Create an auth_source_ldap.

参数

参数名字 描述
auth_source_ldap
必填

Validations:

  • Must be a Hash

auth_source_ldap[name]
必填

Validations:

  • Must be String

auth_source_ldap[host]
必填

Validations:

  • Must be String

auth_source_ldap[port]
选填

默认为 389

Validations:

  • Must be a number.

auth_source_ldap[account]
选填

Validations:

  • Must be String

auth_source_ldap[base_dn]
选填

Validations:

  • Must be String

auth_source_ldap[account_password]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_login]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_firstname]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_lastname]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_mail]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_photo]
选填

Validations:

  • Must be String

auth_source_ldap[onthefly_register]
选填

Validations:

  • Must be 'true' or 'false' or '1' or '0'

auth_source_ldap[usergroup_sync]
选填

登录时同步外部用户组

Validations:

  • Must be 'true' or 'false' or '1' or '0'

auth_source_ldap[tls]
选填

Validations:

  • Must be 'true' or 'false' or '1' or '0'


PUT /api/auth_source_ldaps/:id
Update an auth_source_ldap.

参数

参数名字 描述
id
必填

Validations:

  • Must be String

auth_source_ldap
必填

Validations:

  • Must be a Hash

auth_source_ldap[name]
选填

Validations:

  • Must be String

auth_source_ldap[host]
选填

Validations:

  • Must be String

auth_source_ldap[port]
选填

默认为 389

Validations:

  • Must be a number.

auth_source_ldap[account]
选填

Validations:

  • Must be String

auth_source_ldap[base_dn]
选填

Validations:

  • Must be String

auth_source_ldap[account_password]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_login]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_firstname]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_lastname]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_mail]
选填

如果 onthefly_register 为 true,则需要填写

Validations:

  • Must be String

auth_source_ldap[attr_photo]
选填

Validations:

  • Must be String

auth_source_ldap[onthefly_register]
选填

Validations:

  • Must be 'true' or 'false' or '1' or '0'

auth_source_ldap[usergroup_sync]
选填

登录时同步外部用户组

Validations:

  • Must be 'true' or 'false' or '1' or '0'

auth_source_ldap[tls]
选填

Validations:

  • Must be 'true' or 'false' or '1' or '0'


DELETE /api/auth_source_ldaps/:id
Delete an auth_source_ldap.

参数

参数名字 描述
id
必填

Validations:

  • Must be String