Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-169

JAAS login options not compatible with IBM JDK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • None

    Description

      When running test with IBM JDK, a number of testcases in /sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift failed due to incompatible JAAS login options for IBM Java.

      JAAS login options needs to update to IBM Java options.

      Testcases failed with the following stack:
      2014-04-01 17:43:26,423 (main) [INFO - org.apache.sentry.service.thrift.SentryService.start(SentryService.java:230)] Attempting to start...
      2014-04-01 17:43:26,424 (main) [INFO - org.apache.sentry.service.thrift.SentryService.isRunning(SentryService.java:220)] status:STARTED
      2014-04-01 17:43:26,424 (main) [INFO - org.apache.sentry.service.thrift.SentryService.isRunning(SentryService.java:221)] thriftServer:null
      2014-04-01 17:43:26,467 (SentryService-0) [ERROR - org.apache.sentry.service.thrift.SentryService.run(SentryService.java:152)] Error starting server
      javax.security.auth.login.LoginException: Bad JAAS configuration: unrecognized option: isInitiator
      at com.ibm.security.jgss.i18n.I18NException.throwLoginException(I18NException.java:25)
      at com.ibm.security.auth.module.Krb5LoginModule.d(Krb5LoginModule.java:233)
      at com.ibm.security.auth.module.Krb5LoginModule.a(Krb5LoginModule.java:669)
      at com.ibm.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:214)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      at java.lang.reflect.Method.invoke(Method.java:619)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:796)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:211)
      at javax.security.auth.login.LoginContext$5.run(LoginContext.java:733)
      at javax.security.auth.login.LoginContext$5.run(LoginContext.java:731)
      at java.security.AccessController.doPrivileged(AccessController.java:366)
      at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:730)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:600)
      at org.apache.sentry.service.thrift.SentryService.run(SentryService.java:139)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482)
      at java.util.concurrent.FutureTask.run(FutureTask.java:273)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1170)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:640)
      at java.lang.Thread.run(Thread.java:853)

      Attachments

        1. SENTRY-169-2.patch
          3 kB
          Tuong Truong
        2. SENTRY-169.patch
          3 kB
          Tuong Truong

        Activity

          People

            tctruong Tuong Truong
            tctruong213 Tuong Truong
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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