How to use openldap with fabric-ca in hyperledger fabric?

你离开我真会死。 提交于 2019-12-13 15:17:45

问题


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 ?


回答1:


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

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>

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.

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)

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



来源:https://stackoverflow.com/questions/57904503/how-to-use-openldap-with-fabric-ca-in-hyperledger-fabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!