简体   繁体   English

在ouchdb或cloudant之上的LDAP v3服务

[英]LDAP v3 service on top of couchdb or cloudant

We have a requirement to move existing data from our LDAP server to couchdb or cloudant. 我们需要将现有数据从我们的LDAP服务器移至benchdb或cloudant。 We want to use the inherent cloudant replication than setting up native LDAP replications. 我们要使用固有的cloudant复制,而不是设置本机LDAP复制。

For our clients, we need to provide an LDAP v3 interface to access that data. 对于我们的客户,我们需要提供LDAP v3接口来访问该数据。

Are their any existing LDAP servers or "virtual" LDAP servers that can work with cloudant as the back end ? 是否可以将cloudant作为后端使用任何现有的LDAP服务器或“虚拟” LDAP服务器? Or if any directory servers where a new backend can be added with some customization ? 或者是否可以通过一些自定义添加新后端的目录服务器?

I don't know of any LDAP to Cloudant migration tools. 我不知道从LDAP到Cloudant的迁移工具。 Neither product can speak to each other natively. 两种产品都无法以本地语言相互交流。

You could think about modelling your LDAP data as JSON for starters. 您可以考虑将LDAP数据建模为JSON以供初学者使用。 An LDAP entry like this: 像这样的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

could become: 可能成为:

{
  "_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"]
}

The choice of _id , Cloudant's unique identifier per document, is important to get right of course. _id (Cloudant每个文档的唯一标识符)的选择对于正确进行很重要。 Once you have your data as JSON, you can insert it into Cloudant using the bulk API (in batches of, say, 500). 数据以JSON格式存储后,您可以使用批量API (例如500个批次)将其插入Cloudant。

You can certainly model all of the LDAP key/values but thought would be given as to how you would want to retrieve and search the data once in Cloudant. 您当然可以对所有LDAP键/值建模,但是会考虑如何在Cloudant中检索和搜索数据。 You could start with Cloudant Query , but there are other options like Map/Reduce Views and full-text search . 您可以从Cloudant Query开始,但是还有其他选项,例如Map / Reduce Views全文本搜索

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM