Description

This function checks whether Digest Authentication is enabled for a cPanel user.

 Windows® Vista, Windows® 7, and Windows® 8 require Digest Authentication support in order to access Web Disk over an unencrypted connection.

Examples 




https://hostname.example.com:2087/cpsess##########/json-api/has_digest_auth?api.version=1&user=user




https://hostname.example.com:2087/cpsess##########/xml-api/has_digest_auth?api.version=1&user=user




whmapi1 has_digest_auth user=user



{
 "data":
    {
       "digestauth":1,
    },
       "metadata":
   {
      "version":1,
      "reason":"OK",
      "result":1,
      "command":"has_digest_auth"
    }
}




<result>
    <data>
      <digestauth>1</digestauth>
    </data>
    <metadata>
      <version>1</version>
      <reason>OK</reason>
      <result>1</result>
      <command>has_digest_auth</command>
    </metadata>
  </result>



   

Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The cPanel account username.

A valid cPanel username on the server.

user

Returns

ReturnTypeDescriptionPossible valuesExample
digestauthBooleanWhether Digest Authentication support is enabled.
  • 1 — Enabled.
  • 0 — Disabled.
1