Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2782

Knox CLI user-auth-test command failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 2.0.0
    • KnoxCLI
    • None

    Description

      There is an issue with KnoxCLI's user-auth-test command:

      bin/knoxcli.sh user-auth-test --cluster sandbox --u admin --p admin-password
      java.lang.IllegalArgumentException: Configuration error. Specified object [invalidRequest] with property [blockSemicolon] without first defining that object's class. Please first specify the class property first, e.g. myObject = fully_qualified_class_name and then define additional properties.
      org.apache.knox.gateway.util.KnoxCLI$LDAPCommand$BadSubjectException: Subject could not be created with Shiro Config at sections=main,urls
      For more information use --d for debug output.
      ERR: Unable to authenticate user: admin 

      The reason is, that 3 properties are added OOTB to the generated Shiro configuration, under the "main" section, as per KNOX-2455

          params.putIfAbsent("main.invalidRequest.blockSemicolon", "false");
          params.putIfAbsent("main.invalidRequest.blockBackslash", "false");
          params.putIfAbsent("main.invalidRequest.blockNonAscii", "false"); 

      Attachments

        Issue Links

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m