Guest User!

You are not Sophos Staff.

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

Change OTP token's user via API

Hello,

I want to change users of all OTP tokens on all of our firewalls because of domain change. Users with new domain already exists on the firewalls and I can change them manually via web GUI, but as we are talking about hundreds of tokens here, I prefer to use the script and XML API.

I have tried it with the following request, but it ends with  <Status code="500">Operation could not be performed on Entity.</Status>

xxxxx:4444/.../APIController operation="update"><OTPTokens transactionid=""><tokenid>d5b3a69c988b43b08811070c214c75b6</tokenid><user>user@domain.com</user></OTPTokens></Set></Request>

Unfortunately, the API manual is not much detailed and I don’t know if <tokened> tag is enough for token identification or I have to fulfil aditional information too.

 

I'm testing it on XG210 (SFOS 19.0.1 MR-1-Build365).

Have you anybody experience with this API?

Thank you,

Ondrej



This thread was automatically locked due to age.
Parents Reply
  • Sorry. My mistake - it's not working. There is no error code returned now, but also the operation itself is not proceeded. I'm unable to even change the comment of OTP token, which should be the easiest operation.

    Actually there is no <OTPTokens> part in response at all when I use <secret> tag in request:

    <?xml version="1.0" encoding="UTF-8"?>
    <Response APIVersion="1900.1" IPS_CAT_VER="1">
    <Login>
    <status>Authentication Successful</status>
    </Login>
    </Response>

    When don't use <secret> tag in request, there is an error code 500:

    <?xml version="1.0" encoding="UTF-8"?>
    <Response APIVersion="1900.1" IPS_CAT_VER="1">
    <Login>
    <status>Authentication Successful</status>
    </Login>
    <OTPTokens transactionid="">
    <Status code="500">Operation could not be performed on Entity.</Status>
    </OTPTokens>
    </Response>

Children