2014-09-30 83 views
1

我们在Windows 2012上的Tomcat 7服务器上安装了KIE WB 6.1.0并创建了一些用户。这些用户可以登录到Workbench并在存储库中进行工作。Drools Workbench通过SSH访问版本库

如果我尝试克隆从另一个计算机资料库,我只得到验证错误:

mb-itmsan01:temp ds$ git clone ssh://[email protected]:8001/TestRep 
Cloning into 'TestRep'... 
Password authentication 
Password: 
Password authentication 
Password: 
Password authentication 
Password: 
[email protected]'s password: 
Permission denied, please try again. 
[email protected]'s password: 
Permission denied, please try again. 
[email protected]'s password: 
Permission denied (password,keyboard-interactive). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

我相信,用户和密码组合是正确的......

我缺少的东西,例如用户的角色还是一些配置?我添加了该用户手册中描述的所有角色,但仍然没有成功。

回答

1

我发现了如何解决这个问题: 它已在6.2.x中修复(目前仅在Beta状态下可用)。如果你要修复在Tomcat 7的Drools WB 6.1.x的问题,只是用下面的内容替换内容的文件WEB-INF/classes/login.config在:

ApplicationRealm { 
    org.apache.catalina.realm.JAASMemoryLoginModule REQUIRED debug=true; 
}; 

各自提交在GitHub上是:

https://github.com/droolsjbpm/kie-wb-distributions/commit/e53c0c36686822fc17ad5e8aceab39f1de4fb844

之后,可以通过SSH访问Git存储库,并使用在tomcat-users.xml中定义的凭据。