获取

描述

object authentication.get(object parameters)

此方法允许根据给定参数检索身份认证对象。

此方法仅对“超级管理员”用户类型可用。 调用此方法的权限可以在用户角色设置中撤销。 有关更多信息,请参阅用户角色

参数

(object) 定义所需的输出。

该方法仅支持一个参数。

参数类型描述
outputquery此参数是参考说明中描述的所有get方法的通用参数。

返回值

(object) 返回认证对象。

示例

请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "authentication.get",
  4. "params": {
  5. "output": "extend"
  6. },
  7. "id": 1
  8. }

响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": {
  4. "authentication_type": "0",
  5. "http_auth_enabled": "0",
  6. "http_login_form": "0",
  7. "http_strip_domains": "",
  8. "http_case_sensitive": "1",
  9. "ldap_auth_enabled": "0",
  10. "ldap_case_sensitive": "1",
  11. "ldap_userdirectoryid": "0",
  12. "saml_auth_enabled": "0",
  13. "saml_case_sensitive": "0",
  14. "passwd_min_length": "8",
  15. "passwd_check_rules": "15",
  16. "jit_provision_interval": "1h",
  17. "saml_jit_status": "0",
  18. "ldap_jit_status": "0",
  19. "disabled_usrgrpid": "9",
  20. "mfa_status": "0",
  21. "mfaid": "0"
  22. },
  23. "id": 1
  24. }

源码位置

CAuthentication::get() 在 ui/include/classes/api/services/CAuthentication.php 文件中。