OrientDB 默认的 OLDAPImporter class 丢失了吗?

OrientDB default OLDAPImporter class missing?

我是 运行 OrientDB Community 2.2.3 GA,在阅读了自版本 2.2.x (http://orientdb.com/docs/last/Security-OrientDB-New-Security-Features.html) 以来引入的 OrientDB 的一些新安全功能后,我一直在尝试测试新的 LDAPImporter。

我已经按照安全配置文档中提供的示例使用 "ldapImporter" 配置设置更新了 security.json 文件(我的声誉不允许我 post link就可以了,不过你可以点击上面link里面的"Security Configuration"查看。

当我现在启动 OrientDB 服务器时,出现异常,提示未找到 OLDAPImporter class。

2016-06-28 15:25:16:572 INFO  OSystemUserAuthenticator is active [OSystemUserAuthenticator]ODefaultServerSecurity.getClass() Throwable:
java.lang.ClassNotFoundException: com.orientechnologies.security.ldap.OLDAPImporter
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at com.orientechnologies.orient.server.security.ODefaultServerSecurity.getClass(ODefaultServerSecurity.java:129)

    at com.orientechnologies.orient.server.security.ODefaultServerSecurity.reloadImportLDAP(ODefaultServerSecurity.java:959)
    at com.orientechnologies.orient.server.security.ODefaultServerSecurity.loadComponents(ODefaultServerSecurity.java:751)
    at com.orientechnologies.orient.server.security.ODefaultServerSecurity.onAfterActivate(ODefaultServerSecurity.java:673)
    at com.orientechnologies.orient.server.OServer.activate(OServer.java:392)
    at com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41)

2016-06-28 15:25:16:587 SEVER ODefaultServerSecurity.reloadImportLDAP() ImportLDAP class property is missing [ODefaultServerSecurity]
2016-06-28 15:25:16:587 INFO  OrientDB Server is active v2.2.3 (build 2.2.x@r2f229613abac00036c2fa1b59ab5d1e8a882d6de; 2016-06-20 06:46:10+0000). [OServer]

当我检查 orientdb-core-2.2.3.jar 的内容时,我没有看到定义 OLDAPImporter class 的 java 文件。此外,查看 GitHub 上的 2.2.x 分支,我也找不到 class 的源文件(同样,我目前的声誉不允许我 post每个 post 超过 1 link,但我在看这里:.../orientechnologies/orientdb/tree/2.2.x/core/src/main/java/com/orientechnologies/orient/core/security).

文档使我相信该功能已完全实现,所以我认为我只是完全遗漏了一些明显的东西。谢谢!

您好,Oldap 导入器未与社区版捆绑在一起。

你可以从这里编译它

https://github.com/orientechnologies/orientdb-security

并在 lib 文件夹中安装 jar

或者您可以在此处下载包含该功能的企业版。

http://orientdb.com/orientdb-enterprise