这是原厂英文文档的翻译页面. 欢迎帮助我们 完善文档.
2022 Zabbix中国峰会
2022 Zabbix中国峰会

获取

描述

object authentication.get(object parameters)

该方法允许根据给定的参数检索认证对象。

此方法只有 Super admin(超级管理员) 用户可用。可以在用户角色设置中撤销调用该方法的权限。更多信息请查看用户角色

参数

(object) 定义所需输出的参数。

这个方法只支持一个参数。

参数 类型 描述
output query 这个参数对于所有 get 方法都是通用的,在 参考说明 进行了描述。

返回值

(object) 返回认证对象。

示例

请求:

{
           "jsonrpc": "2.0",
           "method": "authentication.get",
           "params": {
               "output": "extend"
           },
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1
       }

响应:

{
           "jsonrpc": "2.0",
           "result": {
               "authentication_type": "0",
               "http_auth_enabled": "0",
               "http_login_form": "0",
               "http_strip_domains": "",
               "http_case_sensitive": "1",
               "ldap_configured": "0",
               "ldap_host": "",
               "ldap_port": "389",
               "ldap_base_dn": "",
               "ldap_search_attribute": "",
               "ldap_bind_dn": "",
               "ldap_case_sensitive": "1",
               "ldap_bind_password": "",
               "saml_auth_enabled": "0",
               "saml_idp_entityid": "",
               "saml_sso_url": "",
               "saml_slo_url": "",
               "saml_username_attribute": "",
               "saml_sp_entityid": "",
               "saml_nameid_format": "",
               "saml_sign_messages": "0",
               "saml_sign_assertions": "0",
               "saml_sign_authn_requests": "0",
               "saml_sign_logout_requests": "0",
               "saml_sign_logout_responses": "0",
               "saml_encrypt_nameid": "0",
               "saml_encrypt_assertions": "0",
               "saml_case_sensitive": "0",
               "passwd_min_length": "8",
               "passwd_check_rules": "8"
           },
           "id": 1
       }

来源

ui/include/classes/api/services/CAuthentication.php 中的 CAuthentication::get()。