无法将LDAP与fabric-ca一起使用时在Fabric中添加从属关系

问题描述 投票:0回答:1

我正在尝试使用命令行在网络中添加新的从属关系,但即使在将force标志传递给它之后,我也仍然收到此错误。

fabric-ca-client affiliation add org1.transactor.users.role1 --force

错误:来自服务器的响应:错误代码:0-不支持

[寻找我的Fabric-ca的日志时,我得到了这个:

Getting user '[email protected]'
[DEBUG] Searching for user '[email protected]' using cached connection
[DEBUG] Successfully retrieved user '[email protected]', DN: [email protected],ou=users,ou=transactor,ou=org1,dc=example,dc=com
[DEBUG] Successful token authentication of '[email protected]'
[DEBUG] Received affiliation update request from [email protected]
[DEBUG] Evaluating expression for attribute 'hf.AffiliationMgr' from LDAP user '[email protected]'
[DEBUG] Affilation path for DN '[email protected],ou=users,ou=transactor,ou=org1,dc=example,dc=com' is '[org1 transactor users]'
[DEBUG] Values for LDAP attribute 'uid' are '[[email protected]]'
[DEBUG] Evaluated expression for attribute 'hf.AffiliationMgr'; parms: map[DN:[email protected],ou=users,ou=transactor,ou=org1,dc=example,dc=com affiliation:[org1 transactor users]]; result: true
[DEBUG] Processing affiliation configuration update request
[DEBUG] Processing POST request
[DEBUG] Request to add affiliation 'org1.transactor.users.role1'
[INFO] POST /affiliations?force=true 500 0 "Not supported"
hyperledger-fabric hyperledger openldap hyperledger-fabric-ca
1个回答
0
投票

https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/users-guide.html#adding-an-affiliation

检查您的请求者的这两个条件:

openssl x509 -text -noout -in $FABRIC_CA_CLIENT_HOME/msp/signcerts/cert.pem
© www.soinside.com 2019 - 2024. All rights reserved.