Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5741

Native user authentication: improve checking of syntax

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Services
    • Labels:
      None
    • Issue & fix info:
      Patch Available
    • Bug behavior facts:
      Security

      Description

      Trying to set derby.authentication.provider to "NATIVE:" correctly gives an error message complaining about the syntax:

      "ERROR XCY05: Invalid setting of the derby.authentication.provider property. This property cannot be set to NATIVE::LOCAL unless credentials for the database owner have been stored in the database using the SYSCS_UTIL.SYSCS_CREATE_USER procedure."

      Trying to set it as "NATIVE" (no trailing colon) does not treat this the value as a malformed NATIVE authentication specification. This leads to it being interpreted as a used defined authentication class, so when I attempt to connect after disconnection from the database I see:

      ERROR XJ040: Failed to start database 'cred' with class loader sun.misc.Launcher$AppClassLoader@18d107f, see the next exception for details.
      ERROR XJ001: Java exception: 'NATIVE: java.lang.ClassNotFoundException'.

      Another thing is that the error message in the first place is out of date now: we never shoudl be setting "NATIVE::LOCAL" explicitly, it id does once the first user is created according to version 7.0 of the spec. See DERBY-5742.

        Attachments

        1. repro2.sh
          0.5 kB
          Dag H. Wanvik
        2. derby-5741-01-ab-percolateDerbyErrorUp.diff
          8 kB
          Richard N. Hillegas
        3. derby-5741-01-aa-percolateDerbyErrorUp.diff
          7 kB
          Richard N. Hillegas

          Issue Links

            Activity

              People

              • Assignee:
                rhillegas Richard N. Hillegas
                Reporter:
                dagw Dag H. Wanvik
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: