2017-05-04 43 views
0

我们有要求将现有数据从LDAP服务器迁移到couchdb或cloudant。我们想要使用固有的云计算复制,而不是设置本地LDAP复制。couchdb或cloudant之上的LDAP v3服务

对于我们的客户,我们需要提供一个LDAP V3界面来访问这些数据。

难道他们的任何现有的LDAP服务器或可与cloudant工作作为后端“虚拟”的LDAP服务器?或者,如果有任何目录服务器可以添加一些新的后端,并进行一些定制?

回答

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: [email protected] 
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": "[email protected]", 
    "manager": "barbaradoe.example.com", 
    "objectClass": ["inetOrgPerson","organizationalPerson","person","top"] 
} 

_id选择,Cloudant的每个文档的唯一标识符,以获得正确的,当然是很重要的。将数据作为JSON后,可以使用bulk API(批量,比如说500)将其插入到Cloudant中。

可以肯定模型中的所有LDAP键/值,但认为会给出你会如何想检索和Cloudant一次搜索数据。您可以从Cloudant Query开始,但还有其他选项,如Map/Reduce Viewsfull-text search