This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

API Authentication Failure

I am triyng to add an IP host as first step with api.

I am using the following direct in browser (chrome & Firefox): serintxgfire:4444/.../APIController APIVersion="1900.1" IPS_CAT_VER="1"><Login><Username>StudioApiInt</Username><Password passwordform="encrypt">C5AD550AB773AD7042A54C1C75256C98</Password></Login><Set operation="add"><IPHost><Name>000ATest10</Name><IPFamily>IPv4</IPFamily><HostType>IP</HostType><IPAddress>198.1.2.1</IPAddress></IPHost></Set></Request>

I have tryed with plain password (worse), without specifying ApiVersion etc. but i get always the same result below or no response at all.

<Response APIVersion="1900.1" IPS_CAT_VER="1">
<Login>
<status>Authentication Failure</status>
</Login>
</Response>
I suppose the encypted password is correct based on test below; from encrypted key to decrypted key successful.
Any suggestion?


This thread was automatically locked due to age.
Parents Reply Children
  • Hi I have tried in local LAB Appliance with admin credentials and it worked for me.

    X.X.X.X:4444/.../APIController passwordform="encrypt">YYYYYYYYYYYYYYYYYYYYYY</Password></Login><Set><IPHost><Name>Test3</Name><IPFamily>IPv4</IPFamily><HostType>IP</HostType><IPAddress>198.1.2.3</IPAddress></IPHost></Set></Request>



    If I am simply giving an incorrect username or password then it is generating the same error that you are receiving.

    X.X.X.X:4444/.../APIController<Username>API admin</Username><Password passwordform="encrypt">YYYYYYYYYYYYYYYYYYYYYY</Password></Login>

    (No such user is present on the LAB device, taken to generate the error).

    Example:

    <Response APIVersion="1900.1" IPS_CAT_VER="0">
    <Login>
    <status>Authentication Failure</status>
    </Login>
    </Response>

    So definitely there is something with user credentials (username or password) that is generating an error for you.

    Regards,

    Vishal Ranpariya
    Technical Account Manager | Sophos Technical Support

    Sophos Support Videos | Knowledge Base  |  @SophosSupport | Sign up for SMS Alerts |
    If a post solves your question use the 'This helped me' link.

  • I have redone the process of encrypting password (with a new one), rewritten from scratch the https statement and it had worked.

    Having checked everything many times before posting to community, I was skeptic about your response but your suggestion was right.