1. 22 Dec, 2023 3 commits
  2. 25 Sep, 2023 1 commit
  3. 07 Sep, 2023 1 commit
  4. 11 Aug, 2023 1 commit
  5. 09 Aug, 2023 1 commit
  6. 20 Jul, 2023 3 commits
  7. 19 Jul, 2023 1 commit
    • Scruel Tao's avatar
      Add SYNO_USE_TEMP_ADMIN variable & Fix broken logic · c7f6f20c
      Scruel Tao authored
      1. Fix the broken logic in (Sorry for including fix commit in same PR, I'm feeling quite tired and would like to go to sleep right away...)
      2. Provides new method to obtain credential info for authentication, it will create a temp admin user if SYNO_USE_TEMP_ADMIN is set, instead of requiring the user's own credentials which will be saved in disk.
      
      I do really don't like to have plaintext credentials be saved in disk, and I noticed that you've spent a lot of time fighting with 2FA related stuffs, so why not just get rid of the whole old way. :)
      c7f6f20c
  8. 04 Jul, 2023 3 commits
  9. 28 May, 2023 2 commits
  10. 29 Sep, 2022 1 commit
  11. 08 Feb, 2022 1 commit
  12. 07 Feb, 2022 2 commits
  13. 13 Nov, 2021 1 commit
  14. 01 Nov, 2021 1 commit
  15. 26 May, 2021 2 commits
    • Brian Hartvigsen's avatar
      shellcheck cleanup · dcb51683
      Brian Hartvigsen authored
      shellcheck sees '\\' as trying to escape the trailing quote (see
      koalaman/shellcheck#1548 ).
      dcb51683
    • Brian Hartvigsen's avatar
      Make certificate descriptions sed safe · 74a4a788
      Brian Hartvigsen authored
      This escapes special characters used in POSIX sed to prevent mismatches.
      e.g. `SYNO_Certficiate=*.example.com` would not match a description of
      "*.example.com" and would look to match any number of double quotes (the
      last character in the sed regex prior to certificate description),
      followed by any single character, followed by "example", followed by any
      character, followed by "com".
      
      After this change, it will properly match `*.example.com` and not
      `""zexamplefcom`.
      
      Additionally we now store the certificate description as base64 encoded
      to prevent issues with single quotes.
      
      Tested on DSM 7.0-41222 (VDSM) and DSM 6.2.4-25556 (DS1515+).
      74a4a788
  16. 19 May, 2021 1 commit
  17. 02 May, 2021 1 commit
    • Brian Hartvigsen's avatar
      FIX: Synology sets "default" on wrong certificate · 1a4a180e
      Brian Hartvigsen authored
      For some DSM installs, it appears that setting the "default" flag to the
      string "false" actually sets it to true.  This causes Synology to set
      the last updated certificate to be the default certificate.  Using an
      empty string appears to still be accepted as a false-y value for DSMs
      where this isn't happening and corrects the behavior in the cases that
      it was.
      
      Credit to @Run-King for identifying the fix and @buxm for reporting.
      1a4a180e
  18. 10 Dec, 2020 4 commits
    • Brian Hartvigsen's avatar
      Shellcheck linting · 2635dfef
      Brian Hartvigsen authored
      Also removed unused code
      2635dfef
    • Brian Hartvigsen's avatar
      Support DSM 6 and 7 · 7d7789ae
      Brian Hartvigsen authored
      Small changes for DSM 6:
      
      All fields (except enable_syno_token as explained below) must either be in the GET params or the POST params, you can't mix GET and POST params
      enable_syno_token=yes must be in both the GET and POST params.
      If enable_syno_token=yes is only in the POST fields, then DSM6 returns a synotoken of --------. If enable_syno_token=yes is only in the GET params, then it returns no synotoken at all. It must be in both to work.
      Need to use /webapi/auth.cgi instead of /webapi/entry.cgi
      Verified with DSM 6.2.3-25426 Update 2 and DSM 7.0-40850
      7d7789ae
    • Thijn's avatar
      Fix synology_dsm deployhook for DSM 7 · cc692854
      Thijn authored
      cc692854
    • Brian Hartvigsen's avatar
      Use POST for login · 99d3a283
      Brian Hartvigsen authored
      This allows us to get the cookie and the token (as it appears to be only in the body in DSM 7.)  HTTP_HEADERS is only guarenteed to be output with POST for both wget and curl.
      99d3a283
  19. 26 Jul, 2020 1 commit
  20. 19 May, 2020 1 commit
  21. 16 May, 2020 6 commits
  22. 08 Mar, 2020 2 commits