Created
August 12, 2014 06:44
-
-
Save asyd/3c5c70f3e3bc82e6ee86 to your computer and use it in GitHub Desktop.
In memory LDAP Server with unboundid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@BeforeClass() | |
public void setUp() throws LDAPException { | |
InMemoryDirectoryServerConfig config = new InMemoryDirectoryServerConfig("dc=example,dc=com"); | |
config.addAdditionalBindCredentials("cn=Directory Manager", "password"); | |
directoryServer = new InMemoryDirectoryServer(config); | |
directoryServer.importFromLDIF(true, getClass().getResource("/00-initial.ldif").getPath()); | |
directoryServer.startListening(); | |
ldapConnection = directoryServer.getConnection(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment