1. Sebastian Sebastian
  2. scm-manager
  3. Issues

Issues

Issue #33 resolved

Trusted domains are not detected properly.

Michał Sznajder
created an issue

As a result of <<issue 28>> scm-manager is able to authenticate users using DOMAIN\user scheme. This enables users to login into scm-manager not only using primary domain but also using trusted domain of their network.

With <<issue 28>> some basic code for detecting trusted domains was added but it seems it does not work in my case. I will try to provide some input on my AD topology.

Comments (5)

  1. Anonymous

    I also have experienced a complete failure of the plugin since the most recent update, using either the full username DOMAIN\user.name or just user.name.

    Here's the full stack trace from scm-manager.log right after I start the service:

    09:13:03.462 [Thread-0] INFO  sonia.scm.activedirectory.auth.ActiveDirectoryAuthenticationHandler - Active Directory default domain is DC=<<DOMAIN>>,DC=net
    09:13:03.507 [Thread-0] ERROR sonia.scm.activedirectory.auth.ActiveDirectoryAuthenticationHandler - could not read domains
    com4j.ComException: 800a0e7c (Unknown error) : Parameter object is improperly defined. Inconsistent or incomplete information was provided.
    	at com4j.Wrapper.invoke(Wrapper.java:166) ~[com4j-20110320.jar:na]
    	at $Proxy38.execute(Unknown Source) ~[na:na]
    	at sonia.scm.activedirectory.auth.ActiveDirectoryAuthenticationHandler.readDomains(ActiveDirectoryAuthenticationHandler.java:449) [scm-activedirectory-auth-plugin-1.5.jar:na]
    	at sonia.scm.activedirectory.auth.ActiveDirectoryAuthenticationHandler.init(ActiveDirectoryAuthenticationHandler.java:184) [scm-activedirectory-auth-plugin-1.5.jar:na]
    	at sonia.scm.web.security.ChainAuthenticatonManager.init(ChainAuthenticatonManager.java:174) [classes/:na]
    	at sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:171) [classes/:na]
    	at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45) [guice-servlet-3.0.jar:na]
    	at sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:117) [classes/:na]
    	at sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:147) [classes/:na]
    	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:643) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:233) [jetty-servlet-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1213) [jetty-webapp-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:589) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) [jetty-webapp-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.server.Server.doStart(Server.java:261) [jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
    	at sonia.scm.server.ScmServer.run(ScmServer.java:95) [scm-server-1.11.jar:na]
    com4j.ComException: 800a0e7c (Unknown error) : Parameter object is improperly defined. Inconsistent or incomplete information was provided.
    	at com4j.Native.invoke(Native Method) ~[com4j-20110320.jar:na]
    	at com4j.StandardComMethod.invoke(StandardComMethod.java:42) ~[com4j-20110320.jar:na]
    	at com4j.Wrapper$InvocationThunk.call(Wrapper.java:335) ~[com4j-20110320.jar:na]
    	at com4j.Task.invoke(Task.java:51) ~[com4j-20110320.jar:na]
    	at com4j.ComThread.run0(ComThread.java:153) ~[com4j-20110320.jar:na]
    	at com4j.ComThread.run(ComThread.java:134) ~[com4j-20110320.jar:na]
    
  2. Log in to comment