public class LdapService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LdapService.LdapServerBindException |
Modifier and Type | Method and Description |
---|---|
void |
createPartition() |
void |
createPartition(String ldif) |
static String |
getDefaultLdif() |
static LdapService |
getInstance() |
int |
getPort() |
LdapUserManagementHelper |
getUserManagementHelper(ConfluenceRpc rpc) |
void |
removePartition() |
void |
start()
Tries to start an LDAP server on any free port in the port range between
PORT_RANGE_START
and PORT_RANGE_END . |
void |
stop()
Stops the LDAP server.
|
public static LdapService getInstance()
public void start() throws LdapService.LdapServerBindException
PORT_RANGE_START
and PORT_RANGE_END
.LdapService.LdapServerBindException
- if there is no free port available in the given rangepublic static String getDefaultLdif()
public void stop()
public LdapUserManagementHelper getUserManagementHelper(ConfluenceRpc rpc)
public int getPort()
Copyright © 2003–2018 Atlassian. All rights reserved.