Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4748

LDAP JAAS Login module causes authentication problems for fabric

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Fix Version/s: jboss-fuse-6.2.1
    • Component/s: Fabric8 v1
    • Labels:
      None
    • Environment:

      RHEL 7.1, JDK 1.7

    • Steps to Reproduce:
      Hide

      1) Step up Fabric using JBoss Fuse 6.1
      2) Configure the fabric container to use LDAP authentication

      Show
      1) Step up Fabric using JBoss Fuse 6.1 2) Configure the fabric container to use LDAP authentication
    • Workaround Description:
      Hide

      https://access.redhat.com/solutions/800883 - be sure to use the right rank for 6.2 and above.

      Show
      https://access.redhat.com/solutions/800883 - be sure to use the right rank for 6.2 and above.

      Description

      When a fabric environment is configured for LDAP authentication the following authentication issue begins to occur with Git:

      2014-09-12 12:38:45,652 | WARN  | 1973494456-25036 | LDAPLoginModule                  | aas.modules.ldap.LDAPLoginModule  207 | 27 - org.apache.karaf.jaas.modules - 2.3.0.redhat-610379 | User container#root not found in LDAP.
      2014-09-12 12:38:45,653 | WARN  | 1973494456-25036 | GitSecureHttpContext             | c8.git.http.GitSecureHttpContext  161 | 102 - io.fabric8.fabric-git-server - 1.0.0.redhat-379 | Login failed
      javax.security.auth.login.LoginException: Login Failure: all modules ignored
      	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:935)[:1.7.0_25]
      	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)[:1.7.0_25]
      	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)[:1.7.0_25]
      	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)[:1.7.0_25]
      	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_25]
      	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)[:1.7.0_25]
      	at javax.security.auth.login.LoginContext.login(LoginContext.java:594)[:1.7.0_25]
      	at io.fabric8.git.http.GitSecureHttpContext.doAuthenticate(GitSecureHttpContext.java:143)[102:io.fabric8.fabric-git-server:1.0.0.redhat-379]
      	at io.fabric8.git.http.GitSecureHttpContext.handleSecurity(GitSecureHttpContext.java:96)[102:io.fabric8.fabric-git-server:1.0.0.redhat-379]
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:68)[100:org.ops4j.pax.web.pax-web-jetty:3.0.6]
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:219)[100:org.ops4j.pax.web.pax-web-jetty:3.0.6]
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:77)[100:org.ops4j.pax.web.pax-web-jetty:3.0.6]
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.Server.handle(Server.java:370)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
      	at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
      

      This message continues to be logged causing the log files to roll.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                sonicaaaa Paolo Antinori
                Reporter:
                jsherman Jason Sherman
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: