如何在Hyperledger Fabric中将openldap与fabric-ca一起使用? [英] How to use openldap with fabric-ca in hyperledger fabric?

查看:90
本文介绍了如何在Hyperledger Fabric中将openldap与fabric-ca一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将openldap docker容器与fabric-ca一起使用,我已经在互联网上搜索了一个星期.社区中有人尝试过或实施过吗?

I want to use openldap docker container with fabric-ca , I've been searching on internet for a week now. Is there anyone in the community who have tried or implemented ?

推荐答案

我不能说我自己做过,但是您可以将Fabric CA配置为使用LDAP.

I can't say I have done it myself, but you can configure the Fabric CA to use LDAP.

在您的 CA服务器配置文件中,与LDAP相关的部分.更具体地说,您首先要启用LDAP并指向其运行的URL:

Inside your CA Server Configuration file there is a section related to LDAP. More specifically, you would start by enabling LDAP and pointing to the URL where it is running:

ldap:
   enabled: true
   url: ldap://<adminDN>:<adminPassword>@<host>:<port>/<base>

如果已在LDAP服务器上使用自签名证书启用了TLS,则还需要配置TLS以信任签名证书.

If you have enabled TLS using self-signed certificates on the LDAP server then you would need to also configure TLS to trust the signing certificate.

Fabric CA文档具有一节有关如何配置LDAP的信息,请参见该文章以进行更详细的配置.它包括开始使用OpenLDAP Docker容器osixia/openldap所需的最低配置:

The Fabric CA documentation has a section on how you would configure LDAP, see that for more elaborate configurations. It includes the minimum configuration that you would need to do to get started with using OpenLDAP Docker container osixia/openldap:

ldap:
   enabled:    true
   url:        ldap://cn=admin,dc=example,dc=org:admin@localhost:10389/dc=example,dc=org
   userfilter: (uid=%s)

最后,此媒体文章讨论了配置Fabric CA以使用LDAP所需的步骤.我相信作者正在使用OpenLDAP.祝你好运!

Finally, this Medium post discusses the steps needed to configure Fabric CA to use LDAP. I believe the author is using OpenLDAP. Good luck!

这篇关于如何在Hyperledger Fabric中将openldap与fabric-ca一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆