让 Hudson 连接到 sasl svnserve 安装

让 Hudson 连接到 sasl svnserve 安装

我们无法让 hudson 连接到我们的 SVN 服务器。我们使用 SASL,可以很好地与 tortoisesvn 和标准 cli 客户端连接。但是,当我们尝试使用 hudson 时,我们收到此错误:

Passing user name someuser1 and password you entered
Failed to authenticate: svn: Authorization failed
FAILED: svn: Authorization failed

堆栈跟踪:

org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authorization failed
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:62)

    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)

    at org.tmatesoft.svn.core.internal.io.svn.sasl.SVNSaslAuthenticator.authenticate(SVNSaslAuthenticator.java:138)

    at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:173)

    at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:1260)
    at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1238)

    at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.testConnection(SVNRepositoryImpl.java:95)

    at hudson.scm.SubversionSCM$DescriptorImpl.postCredential(SubversionSCM.java:1743)

    at hudson.scm.SubversionSCM$DescriptorImpl.doPostCredential(SubversionSCM.java:1700)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259)

    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)

    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)

    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)

    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)

    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)

    at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)

    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)

    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)

    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)

    at org.kohsuke.stapler.Stapler.service(Stapler.java:132)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)

    at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)

    at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)

    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)

    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)

    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)

    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)

    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)

    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)

    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)

    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)

    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)

    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)

    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)

    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)

    at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)

    at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)

    at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)

    at java.lang.Thread.run(Unknown Source)

供参考:用户名和密码正确!

答案1

Hudson 使用 java 的 SVNKit 进行连接;它似乎长期以来都无法与 SASL 很好地配合使用.... 我可以建议使用 ssh+svn 吗?无论哪种方式,您现在至少有一个提示。

相关内容