【问题标题】:LDAP v3 service on top of couchdb or cloudantcouchdb 或 cloudant 之上的 LDAP v3 服务
【发布时间】:2017-05-04 18:41:58
【问题描述】:

我们需要将现有数据从 LDAP 服务器移动到 couchdb 或 cloudant。我们希望使用固有的 Cloudant 复制而不是设置本机 LDAP 复制。

对于我们的客户,我们需要提供一个 LDAP v3 接口来访问该数据。

他们是否有任何现有的 LDAP 服务器或“虚拟”LDAP 服务器可以使用 cloudant 作为后端?或者是否可以通过一些自定义添加新后端的任何目录服务器?

【问题讨论】:

    标签: ldap couchdb cloudant


    【解决方案1】:

    我不知道任何 LDAP 到 Cloudant 的迁移工具。两种产品都不能以原生方式相互交流。

    对于初学者,您可以考虑将 LDAP 数据建模为 JSON。像这样的 LDAP 条目:

     dn: cn=John Doe,dc=example,dc=com
     cn: John Doe
     givenName: John
     sn: Doe
     telephoneNumber: +1 888 555 6789
     telephoneNumber: +1 888 555 1232
     mail: john@example.com
     manager: cn=Barbara Doe,dc=example,dc=com
     objectClass: inetOrgPerson
     objectClass: organizationalPerson
     objectClass: person
     objectClass: top
    

    可能变成:

    {
      "_id": "johndoe.example.com",
      "dc": "example.com",
      "cn": "John Doe",
      "givenName": "John",
      "sn": "Doe",
      "telephoneNumber": [ "+1 888 555 6789", "+1 888 555 1232 ],
      "mail": "john@example.com",
      "manager": "barbaradoe.example.com",
      "objectClass": ["inetOrgPerson","organizationalPerson","person","top"]
    }
    

    _id 的选择,Cloudant 的每个文档的唯一标识符,当然对于正确选择很重要。获得 JSON 格式的数据后,您可以使用 bulk API 将其插入 Cloudant(例如,500 个批次)。

    您当然可以对所有 LDAP 键/值进行建模,但会考虑您希望如何在 Cloudant 中检索和搜索数据。您可以从Cloudant Query 开始,但还有其他选项,例如Map/Reduce Viewsfull-text search

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多