我们在Windows 2012的Tomcat 7服务器上安装了KIE WB 6.1.0,并创建了一些用户。这些用户可以登录到Workbench并在存储库中和内部进行工作。
如果尝试从另一台计算机克隆该存储库,则只会收到身份验证错误:
mb-itmsan01:temp ds$ git clone ssh://admin@192.168.150.34:8001/TestRep
Cloning into 'TestRep'...
Password authentication
Password:
Password authentication
Password:
Password authentication
Password:
admin@192.168.150.34's password:
Permission denied, please try again.
admin@192.168.150.34's password:
Permission denied, please try again.
admin@192.168.150.34'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.
我确信用户名和密码的组合是正确的...
我是否缺少某些东西,例如用户角色还是一些配置?我添加了该用户手册中描述的所有角色,但仍然没有成功。
最佳答案
我发现了如何解决此问题:
它已在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
之后,可以使用
tomcat-users.xml
中定义的凭据通过SSH访问Git存储库。
关于ssh - Drools Workbench通过SSH访问存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26118850/