authentication.get

描述

object authentication.get(object parameters)

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

此方法仅适用于超级管理员用户类型。 可以在用户角色设置中撤销调用该方法的权限。 更多信息请参见User roles

参数

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

该方法仅支持一个参数。

参数 数据类型 描述
output query 此参数在 通用get方法参数 中进行了描述。

返回值

(object) 返回认证 object。

示例

执行请求:

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

Response:

{
    "jsonrpc": "2.0",
    "result": {
        "authentication_type": "0",
        "http_auth_enabled": "0",
        "http_login_form": "0",
        "http_strip_domains": "",
        "http_case_sensitive": "1",
        "ldap_auth_enabled": "0",
        "ldap_case_sensitive": "1",
        "ldap_userdirectoryid": "0",
        "saml_auth_enabled": "0",
        "saml_case_sensitive": "0",
        "passwd_min_length": "8",
        "passwd_check_rules": "15",
        "jit_provision_interval": "1h",
        "saml_jit_status": "0",
        "ldap_jit_status": "0",
        "disabled_usrgrpid": "9",
        "mfa_status": "0",
        "mfaid": "0"
    },
    "id": 1
}

来源

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