问题描述
我正在开发一个Java Web应用程序,它与其他一些部署的外部应用程序集成在一起。身份验证信息必须跨所有内容同步,其他应用程序需要针对LDAP进行身份验证。该应用程序将部署在没有其他LDAP服务器可供使用的环境中;我必须提供它。到目前为止我的解决方案是使用作为独立的应用程序,我设置了检查主应用程序数据库中的表并基于此发布LDAP。它运行良好,但有一些东西可以嵌入主应用程序本身以简化部署会很好。
I'm working on a Java web application that integrates with a few other external applications that are deployed along with it. Authentication information must be synchronized across everything and the other applications want to authenticate against LDAP. The application will be deployed in environments where there will be no other LDAP server for everything to use; I have to provide it. My solution so far has been to use Penrose Server as a standalone app, which I set up to examine tables in the main application's database and publish LDAP based on that. It works well, but it would be nice to have something that can be embedded into the main application itself to simplify deployment.
看起来Penrose可以嵌入,但是文档可能有点不合适或过时(虽然它似乎是积极开发的)。它可能是一个可接受的解决方案,但如果有另一个已知在嵌入式配置中运行良好的我可能想要检查它。
It looks like Penrose can be embedded, but the documentation can be a bit spotty or out-of-date (though it seems to be actively developed). It could be an acceptable solution, but if there is another out there that is known to work well in an embedded configuration I might want to check it out.
我是也关注彭罗斯的GPL问题。我不能自由地向GPL申请该应用程序的源代码。我不相信这是独立运行它的问题,但嵌入它可能是不 - 没有...任何人都知道吗?允许许可证是好的,以避免这些问题。
I'm also concerned about GPL issues with Penrose. I'm not at liberty to GPL the source code for the application. I don't believe it was an issue running it standalone, but embedding it may be no-no... anybody know for sure? A permissive license would be good in order to avoid these issues.
要求:
- LDAP v3
- 必须能够在运行时更新目录内容,无论是以编程方式还是通过其他方式更新,例如Penrose与数据库同步
- 易于配置(在部署时没有为应用程序提供额外配置是理想的)
到目前为止,我简要地看了一下在和似乎是可嵌入的。
So far I've briefly looked at ApacheDS and OpenDS which seem to be embeddable.
有没有人有过这类事情的经验?
Does anyone have experience with this kind of thing?
推荐答案
你应该看看来设置JUnit测试。到目前为止它工作得很好,现在唯一阻止我的是我有限的LDAP知识。 ApacheDS看起来像一个体面的项目,我认为这是值得的。
You should take a look at Apache DS. I just started using it as an embedded server to setup a JUnit test. It's working good so far, the only thing stopping me right now is my limited LDAP knowledge. ApacheDS looks like a decent project and I think it's worth the effort.
这篇关于什么是优秀的可嵌入Java LDAP服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!