Class LdapService
- java.lang.Object
-
- com.atlassian.confluence.it.usermanagement.LdapService
-
public class LdapService extends Object
Starts an LDAP server on the first available port within the range.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LdapService.LdapServerBindException
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 betweenPORT_RANGE_START
andPORT_RANGE_END
.void
stop()
Stops the LDAP server.
-
-
-
Method Detail
-
getInstance
public static LdapService getInstance()
-
start
public void start() throws LdapService.LdapServerBindException
Tries to start an LDAP server on any free port in the port range betweenPORT_RANGE_START
andPORT_RANGE_END
.- Throws:
LdapService.LdapServerBindException
- if there is no free port available in the given range
-
getDefaultLdif
public static String getDefaultLdif()
-
stop
public void stop()
Stops the LDAP server.
-
getUserManagementHelper
public LdapUserManagementHelper getUserManagementHelper(ConfluenceRpc rpc)
-
getPort
public int getPort()
-
-