• Type: Problem report
    • Resolution: Unresolved
    • Priority: Major
    • Affects Version/s: 7.0.20
    • Component/s: Proxy (P), Server (S)
    • Environment:
      AlmaLinux release 8.9
      unixODBC-2.3.7-1.el8.x86_64
      postgresql-odbc-10.03.0000-3.el8_6.x86_64
      postgresql-server-13.14-1.module_el8.9.0+3815+0bfda440.alma.1.x86_64
      postgresql-13.14-1.module_el8.9.0+3815+0bfda440.alma.1.x86_64
    • Prev.Sprint, S25-W50/51/52/01, S26-W04/05, S26-W06/07, S26-W08/09, S26-W10/11, S26-W12/13, S26-W18/19
    • 1

      Two issues are observed with password handling in ODBC connections.
      According to the documentation, starting from Zabbix 7.0.3, passwords should be accepted both with and without curly braces {} in DSN and connection string configurations.
      In practice, authentication behavior varies depending on the presence of "{}".

      Details:

      • When using a DSN, authentication fails only if the password field includes "{}".
        (Authentication succeeds when "{}" are omitted.)
      • When using a connection string, authentication fails if the password field does not include {}, despite documentation stating that "{}" are optional.

      db.odbc.select[<unique short description>,<dsn>,<connection string>]

      Parameter Web interface password field Password in connection string Credentials in odbc.ini (different user due to escape issue) Result
      dsn empty configured OK
      dsn without {} configured OK
      dsn with {} configured × Comments: authentication fails when {} is present; works fine without.
      connection string empty with {} configured OK
      connection string without {} with {} configured × Comments: documentation says {} optional, but authentication fails.
      connection string with {} with {} configured OK
      connection string empty without {} configured ×
      connection string without {} without {} configured × Comments: documentation says {} optional, but authentication fails.
      connection string with {} without {} configured OK
      both empty with {} configured OK
      both without {} with {} configured × Comments: documentation says {} optional, but authentication fails.
      both with {} with {} configured OK
      both empty without {} configured ×
      both without {} without {} configured × Comments: documentation says {} optional, but authentication fails.
      both with {} without {} configured OK

        1. 01_Percent_Password_With_Braces_Before_Test.png
          01_Percent_Password_With_Braces_Before_Test.png
          482 kB
        2. 02_Percent_Password_With_Braces_Result.png
          02_Percent_Password_With_Braces_Result.png
          571 kB
        3. 03_Percent_Password_Without_Braces_Before_Test.png
          03_Percent_Password_Without_Braces_Before_Test.png
          475 kB
        4. 04_Percent_Password_Without_Braces_Result.png
          04_Percent_Password_Without_Braces_Result.png
          605 kB
        5. 1-01_DSN.png
          1-01_DSN.png
          484 kB
        6. 1-02_DSN.png
          1-02_DSN.png
          508 kB
        7. 2-01_DSN.png
          2-01_DSN.png
          472 kB
        8. 2−02_DSN.png
          2−02_DSN.png
          542 kB
        9. 3−01_connection-string.png
          3−01_connection-string.png
          537 kB
        10. 3−02_connection-string.png
          3−02_connection-string.png
          533 kB
        11. 4−01_connection-string.png
          4−01_connection-string.png
          505 kB
        12. 4−02_connection-string.png
          4−02_connection-string.png
          568 kB

            Assignee:
            Aigars Kadikis
            Reporter:
            Itsuki Karimata
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 33.25h
                33.25h