Reference memo / In-memory LDAP server that can be embedded in Java
I suddenly wanted to experiment with LDAP in Java, but it's a hassle to launch and configure OpenLDAP services one by one.
Since it's Java, for example, it would be cool if you could start and initialize an In-Memory embedded LDAP server in the middle of xUnit and connect to it, right?
So, it's a "just googled" memo about an in-memory LDAP server that can be embedded in Java.
I haven't moved my hand yet to actually embed it or connect from Java. Homework at a later date.
In conclusion, there are ApacheDS and UnboundID LDAP SDK as OSS Java LDAP products that can be used as of January 2017, but details are unknown due to lack of documentation on how to embed In-Memory when using the latest stable version. ..
It's easy to find out if you dig a little deeper, but I'll leave that for homework when it's time to actually touch it at a later date.
OSS Java LDAP product found by Gugu:
- Welcome to Apache Directory — Apache Directory
- http://directory.apache.org/
--The Apache project summarizes related OSS projects such as LDAP server, client, and API.
--Of these, an LDAP server that ApacheDS can embed in Java code with In-Memory. (Of course you can also start it standalone)
--License: Apache License 2.0
――The document to incorporate is as follows, but it is empty because it is "TODO ...". (´ ・ ω ・ `)
- http://directory.apache.org/apacheds/advanced-ug/7-embedding-apacheds.html
- UnboundID LDAP SDK for Java
- https://www.ldap.com/unboundid-ldap-sdk-for-java
--Java LDAP Server / Client SDK
--License: GPLv2 / LGPLv2.1 / Original "the UnboundID Free Use License"
-Since it is multifunctional, it is divided into three editions, Standard / Minimal / Commercial, so that you can use only the necessary functions.
--Documents for embedding with In-Memory-> https://docs.ldap.com/ldap-sdk/docs/in-memory-directory-server.html
- — Project Kenai
- https://opends.java.net/
--OSS Directory Service developed on java.net.
--License: Common Development and Distribution License (CDDL)
――It seems that you haven't been active in the last few years.
Reference from Stack Overflow:
Other reference:
- LDAP: In-Memory Directory Server using UnboundID LDAP SDK | Diaries, Triumphs, Failures, and Rants
- https://ff1959.wordpress.com/2011/11/01/ldap-in-memory-directory-server-using-unboundid-ldap-sdk/
--An article about using an LDAP server embedded in the LDAP SDK with Unbound ID.
--It seems that the essential Java code is in google code, and it's lost now. (´ ・ ω ・ `)
- 29. LDAP Authentication
- http://docs.spring.io/spring-security/site/docs/4.2.1.RELEASE/reference/html/ldap.html#using-an-embedded-test-server
--Spring Security supports Apache DS's In-Memory feature as a LDAP authentication test feature.
――If you want to use it now, you have no choice but to read the code here.