我不知道任何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 Views和full-text search。