Jump to content
XPEnology Community

nthkmf

Rookie
  • Posts

    2
  • Joined

  • Last visited

Posts posted by nthkmf

  1. On 10/20/2022 at 5:54 PM, HorstHoden said:

    I *had* no luck on the latest DSM 7.1.1-42962 Update 1. But in the end this is how it worked on my side

     

     

    When i follow the suggested steps in here i can get the auth cookie (no matter if with or without a space in the url which makes no difference on my side)

     

    I tried it in initially with *firefox*

     

    MYIP = your xpenology IP

    MYUSER = the user on the synology

    MYPASSWORD = the password on the synology

    MYXPENOLOGYSERIAL = the serial as copied from the control panel info about

     

    https://MYIP:5001/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=MYUSER&passwd=MYPASSWORD&format=cookie

    {

        "data": {
            "did": "somecrypticpayload",
            "sid": "anothercrypticpayload"
        },
        "success": true
    }

     

    https://MYIP:5001/webapi/auth.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number=MYXPENOLOGYSERIAL

    {

     

        "error": {
            "code": 119
        },
        "success": false
    }

     

    From the offical documenation it says 119 SID not found

    https://global.download.synology.com/download/Document/Software/DeveloperGuide/Package/FileStation/All/enu/Synology_File_Station_API_Guide.pdf

     

    So i assumed the auth information is not passed from the first to the second request in firefox.

    So i tried it in chrome and *voila*

     

    {
        "data": {
            "activated": true
        },
        "success": true
    }

     

    *Cheers* 🍻

     

    This works for me. I tried on Firefox and it done. Thank you very much.

×
×
  • Create New...